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
Which city code of Smith? | Is Smith first name or last name? | first name
assistant
SELECT city_code FROM Student WHERE fname = 'Smith';
human
What age of last name Kim?
assistant
SELECT age FROM Student WHERE lname = "Kim" ;