What are the average and minimum age of captains in different class?
return different classes ;return captains in #1 ;return ages of  #2 ;return average of  #3 for each  #1 ;return minimum of  #3 for each  #1 ;return #4 ,  #5
['select', 'project', 'project', 'group', 'group', 'union']