question: What is the average and oldest age for each gender of student?
#1 return students 
#2 return genders of #1 
#3 return ages of #2 
#4 return average of #3 for each  #2 
#5 return highest of #3 for each  #2 
#6 return #4 ,  #5