What is the average and maximum age for each pet type?
return pet types ;return ages of #1 ;return average of #2 for each #1 ;return maximum of #2 for each #1 ;return #3 ,  #4
['select', 'project', 'group', 'group', 'union']