CREATE TABLE Person (name VARCHAR2, age NUMBER, city CLOB, gender CLOB, job CLOB)
CREATE TABLE PersonFriend (name VARCHAR2, friend VARCHAR2, year NUMBER)

Find the number of people who is under 40 for each gender, sort from high to low by the the total number .
SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY COUNT(*) DESC
SELECT "gender", COUNT(*) FROM "Person" WHERE "age" < 40 GROUP BY "gender" ORDER BY COUNT(*) DESC