Task: Text to Code
Input (English): Find the average age and number of male students (with sex M) from each city.
Output (English): SELECT count(*) ,  avg(age) ,  city_code FROM student WHERE sex  =  'M' GROUP BY city_code