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