Task: Question Generation
Input (English): #1 return students 
#2 return genders of #1 
#3 return #1 where #2 is  X 
#4 return dorms for #3 
#5 return capacities of #4 
#6 return average of #5 
#7 return sum of #5 
#8 return #6 , #7
Output (English): Find the average and total capacity of dorms for the students with gender X.