Task: Text to Code
Input (English): Show the average age for male and female students.
Output (English): SELECT avg(age) ,  sex FROM Student GROUP BY sex