Schema: CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)
Question: Find the number of dorms and total capacity for each gender.
SQL: SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender