human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Dorm (dormid, dorm_name, student_capacity, gender)
Dorm_amenity (amenid, amenity_name)
Has_amenity (dormid, amenid)
Lives_in (stuid, dormid, room_number)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the average oldest students with different sex? | Do you mean what is the average age of students? | What is the average and oldest age for students with different sex?
assistant
SELECT AVG ( age ) , MAX( age ) , sex FROM student GROUP BY sex ;