Task: Text to Code
Input (English): How many people are under 40 for each gender?
Output (English): SELECT count(*) ,  gender FROM Person WHERE age  <  40 GROUP BY gender