question: Show different types of ships and the average tonnage of ships of each type.
#1 return types of  ships  
#2 return different #1 
#3 return tonnages of  #2 
#4 return average of  #3 for each  #2 
#5 return #2 ,  #4