What is the average and total capacity for all dorms who are of gender X?
SELECT avg(student_capacity) ,  sum(student_capacity) FROM dorm WHERE gender  =  'X'
SELECT avg(student_capacity) ,  sum(student_capacity) FROM dorm WHERE gender  =  'X'
[{'avg(student_capacity)': 227.2, 'sum(student_capacity)': 1136}]