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
show the first and last name of all students.
assistant
SELECT fname , lname FROM student;
human
what are their ages?
assistant
SELECT fname , lname , age FROM student;
human
what is the average age?
assistant
SELECT AVG ( age ) FROM student ;