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 pets (pettype VARCHAR, weight INTEGER)
  ### Question:
  Find the average weight for each pet type.
  ### Answer:
  SELECT AVG(weight), pettype FROM pets GROUP BY pettype