Show different types of ships and the average tonnage of ships of each type.
return types of  ships  ;return different #1 ;return tonnages of  #2 ;return average of  #3 for each  #2 ;return #2 ,  #4
['select', 'project', 'project', 'group', 'union']