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
Give information for students older than 18.
assistant
SELECT * FROM Student WHERE Age > 18;
human
List all female students older than 18 who are not majoring in 600. List students' first name and last name.
assistant
SELECT Fname , Lname FROM Student WHERE Age > 18 AND Major != 600 AND Sex = "F" ;