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

How old is each gender, on average Plot them as bar chart, I want to sort by the Y from high to low.
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC
SELECT "gender", AVG("age") FROM "Person" GROUP BY "gender" ORDER BY AVG("age") DESC