human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Restaurant (ResID, ResName, Address, Rating)
Type_Of_Restaurant (ResID, ResTypeID)
Restaurant_Type (ResTypeID, ResTypeName, ResTypeDescription)
Visits_Restaurant (StuID, ResID, Time, Spent)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the age of the student named Linda Smith?
assistant
SELECT Age FROM Student WHERE Fname = 'Linda' AND Lname = 'Smith';
human
Yes, please. | First OR last OR both? | Both, please. Sorry!
assistant
SELECT Fname , Lname FROM Student ORDER BY age DESC LIMIT 1;
human
Who is the advisor of the youngest student?
assistant
SELECT Advisor FROM Student ORDER BY age LIMIT 1 ;