What are the average and minimum weights for people of each sex?
return people ;return sex of #1 ;return weight of #1 ;return average of #3 for each #2 ;return minimum of #3 for each #2 ;return #4, #5
['select', 'project', 'project', 'group', 'group', 'union']