Schema: CREATE TABLE ship (TYPE VARCHAR, Tonnage INTEGER)
Question: Show different types of ships and the average tonnage of ships of each type.
SQL: SELECT TYPE, AVG(Tonnage) FROM ship GROUP BY TYPE