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
Can you show me the dorms with female only students?
assistant
SELECT * FROM dorm WHERE gender = 'F';
human
okay, can you show me all the names of dorm with male only students?
assistant
SELECT * FROM dorm WHERE gender = 'M';
human
what about the name of the dorms that are both male and female?
assistant
SELECT * FROM dorm WHERE gender = 'M' OR gender = 'F';
human
show me the name of dorms that are no gender specific?
assistant
SELECT dorm_name FROM dorm WHERE gender = "X" ;