Task: Text to Code
Input (English): What is the average age for a male in each job?
Output (English): SELECT avg(age) ,  job FROM Person WHERE gender  =  'male' GROUP BY job