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