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

Visualize a bar chart for what are the average ages for male and female students?, could you rank from high to low by the names?
SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY Sex DESC
SELECT "Sex", AVG("Age") FROM "Student" GROUP BY "Sex" ORDER BY "Sex" DESC NULLS LAST