Task: Text to Code
Input (English): What is the average number of working horses of farms with more than 5000 total number of horses?
Output (English): SELECT avg(Working_Horses) FROM farm WHERE Total_Horses  >  5000