text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### 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