What is the average number of working horses of farms with more than 5000 total number of horses?
SELECT avg(Working_Horses) FROM farm WHERE Total_Horses  >  5000
average number refers to AVG(Working_Horses); farms with more than 5000 total number of horses refers to Total_Horses > 5000;