CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year INT)
CREATE TABLE Person (name VARCHAR, age INT, city TEXT, gender TEXT, job TEXT)

Bar graph to show the average of age from different gender, and could you list total number in asc order?
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age)
SELECT "gender", AVG("age") FROM "Person" GROUP BY "gender" ORDER BY AVG("age") NULLS FIRST