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 dorm (gender VARCHAR, student_capacity INTEGER)
  ### Question:
  Find the number of dorms and total capacity for each gender.
  ### Answer:
  SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender