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 (student_capacity INTEGER, gender VARCHAR)
  ### Question:
  Find the average and total capacity of dorms for the students with gender X.
  ### Answer:
  SELECT AVG(student_capacity), SUM(student_capacity) FROM dorm WHERE gender = 'X'