Task: Text to Code
Input (English): SQL: SELECT Sex , Count ( * ) FROM Student WHERE Sex = "F" GROUP BY Sex
Feedback: In step 1 , find average age for both sex , in step 2 , find number of student whose age greater than step1 result .
Output (English): SELECT count(*) ,  sex FROM student WHERE age  >  (SELECT avg(age) FROM student) GROUP BY sex