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
list the info of all dorms.
assistant
SELECT * FROM dorm;
human
what is the capacity of Anonymous Donor Hall?
assistant
SELECT student_capacity FROM dorm WHERE dorm_name = 'Anonymous Donor Hall';
human
List all of the amenities that it has.
assistant
SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = "Anonymous Donor Hall" ;