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