Task: Text to Code
Input (English): SQL: SELECT Pigs , Sum ( Sheep_and_Goats ) FROM farm GROUP BY Farm_ID ORDER BY Sum ( Total_Horses ) Asc
Feedback: Replace sheep and goats with total horses . Remove "summation" word .
Output (English): SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC