def get_name_column(entity):
    """Returns the name column for the entity in the entity id table."""
    if entity=='year':
        return 'year_id' # Year table has only one column, 'year_id'
    elif entity=='life_table_parameter':
        return 'parameter_name'
    elif entity in [
        'cause_set_version', 'gbd_round', 'location_set_version',
        'sequela_set_version', 'sex', 'study_covariate', 'rei_set_version'
    ]: 
        return entity
    else:
        return f'{entity}_name'