Task: Text to Code
Input (English): SQL: SELECT Avg ( Age ) , city_code FROM Student WHERE Sex = "M" GROUP BY city_code
Feedback: For each city code need to find average age where Student's sex equals M .
Output (English): SELECT count(*) ,  avg(age) ,  city_code FROM student WHERE sex  =  'M' GROUP BY city_code