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
For each modern room, find the maximum number of people who can stay in.
assistant
SELECT maxOccupancy FROM Rooms WHERE decor = 'modern' ;
human
What is the total number of people who can stay in the modern rooms of this inn?
assistant
SELECT SUM( maxOccupancy ) FROM Rooms WHERE decor = "modern" ;