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

Show the average age for male and female students with a bar chart, list Y in asc order.
SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age)
SELECT "Sex", AVG("Age") FROM "Student" GROUP BY "Sex" ORDER BY AVG("Age")