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