def validate_sample_name(query_name: str, sample_list):
    """
    Function will validate the query name with a sample list of defined names and aliases
    """

    verified_sample_name = [key for key, value in sample_list.items() if query_name.lower() in value['aliases']]

    if verified_sample_name:
        return verified_sample_name[0]
    else:
        return None