Find the number of students whose age is older than the average age for each gender.
CREATE TABLE student (sex VARCHAR, age INTEGER)
[SQL] SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex [/SQL]