text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE student (sex VARCHAR, age INTEGER)
  ### Question:
  Find the number of students whose age is older than the average age for each gender.
  ### Answer:
  SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex