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

What is the average age for each gender Visualize by bar chart, and show X-axis in ascending order.
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender
SELECT "gender", AVG("age") FROM "Person" GROUP BY "gender" ORDER BY "gender" NULLS FIRST