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

A bar chart about what are the average ages for male and female students?, list by the bars from low to high.
SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY Sex
SELECT "Sex", AVG("Age") FROM "Student" GROUP BY "Sex" ORDER BY "Sex" NULLS FIRST