human
Schema:
Rooms (RoomId, roomName, beds, bedType, maxOccupancy, basePrice, decor)
Reservations (Code, Room, CheckIn, CheckOut, Rate, LastName, FirstName, Adults, Kids)
Please answer with SQL.
assistant
Sure, I understand.
human
Find all the rooms whose price is above 160.
assistant
SELECT * FROM Rooms WHERE basePrice > 160;
human
Of those, which rooms can accommodate more than two people?
assistant
SELECT * FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2 ;
human
Give me the name and id of those rooms.
assistant
SELECT roomName , RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2 ;