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 me the names of students | Do you mean full names of all the students? | Yes
assistant
SELECT fname , lname FROM student;
human
Show me the Age list of all students
assistant
SELECT Age FROM student;
human
Show me the first and last name of students whose age is younger than the average age
assistant
SELECT fname , lname FROM student WHERE age < ( SELECT AVG ( age ) FROM student ) ;