Task: Question Generation
Input (English): #1 return farms 
#2 return working horses  on  #1 
#3 return number of  #2 for each  #1 
#4 return #1 where  #3 is higher than 5000 
#5 return working horses  on  #4 
#6 return number of  #5 for each  #1 
#7 return average of  #6
Output (English): Give the average number of working horses on farms with more than 5000 total horses.