Task: Question Generation
Input (English): #1 return teachers 
#2 return detentions of  #1 
#3 return detention type codes of  #2 
#4 return #2 where  #3 is  AFTER 
#5 return number of  #4 for each #1 
#6 return #1 where  #5 is  highest 
#7 return id of  #6 
#8 return last name of  #6 
#9 return #7 ,   #8
Output (English): Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?