List the maximum weight and type for each type of pet.
return pets ;return types of  #1 ;return weights of  #2 ;return maximum of  #3 for each  #2 ;return #4 ,  #2
['select', 'project', 'project', 'group', 'union']