Task: Text to Code
Input (English): Step 1: find rows in Student table whose Sex equals M.
Step 2: find each value of city_code the results of step 1 along with the average Age of the corresponding rows to each value
Output (English): SELECT Avg ( Age ) , city_code FROM Student WHERE Sex = "M" GROUP BY city_code