Table schema:
CREATE TABLE student (sex VARCHAR, age INTEGER)

Question: Find the number of students whose age is older than the average age for each gender.
SQL: SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex