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
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE ship (TYPE VARCHAR, Tonnage INTEGER) Question: Show different types of ships and the average tonnage of ships of each type. [/INST] SELECT TYPE, AVG(Tonnage) FROM ship GROUP BY TYPE </s>