Task: Text to Code
Input (English): SQL: SELECT Sum ( GNP ) , Sum ( Population ) FROM country WHERE Continent = "US Territory"
Feedback: Instead of "summation of GNP" , Use "Average of GNP".
Output (English): SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  "US Territory"