Task: Text to Code
Input (English): find the average Total_Horses in farm table whose Total_Horses greater than 5000
Output (English): SELECT Avg ( Total_Horses ) FROM farm WHERE Total_Horses > 5000