CREATE TABLE Student (StuID INT, LName VARCHAR, Fname VARCHAR, Age INT, Sex VARCHAR, Major INT, Advisor INT, city_code VARCHAR)
CREATE TABLE Allergy_Type (Allergy VARCHAR, AllergyType VARCHAR)
CREATE TABLE Has_Allergy (StuID INT, Allergy VARCHAR)

Show the average age for male and female students Visualize by bar chart, and could you sort total number in descending order?
SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) DESC
SELECT "Sex", AVG("Age") FROM "Student" GROUP BY "Sex" ORDER BY AVG("Age") DESC NULLS LAST