Task: Text to Code
Input (English): Find the number and average age of students living in each city.
Output (English): SELECT count(*) ,  avg(age) ,  city_code FROM student GROUP BY city_code