Question: What is the average age of all the male students (sex with M) from each city?
SQL: SELECT  avg ( age )  ,  city_code FROM student WHERE sex   =   'M' GROUP BY city_code