Show different types of ships and the average tonnage of ships of each type.
select type, avg(tonnage) from ship group by type