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

What is the average age for each gender Visualize by bar chart, I want to list by the mean age in descending.
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 NULLS LAST