Task: Text to Code
Input (English): SQL: SELECT Sum ( T2.Adults ) FROM Rooms AS T1 JOIN Reservations AS T2 ON T1.RoomId = T2.Room WHERE T1.bedType = "modern"
Feedback: Replace adults and bed Type with max occupancy of rooms table and decor respectively .
Output (English): SELECT sum(maxOccupancy) FROM Rooms WHERE decor  =  'modern'