Task: Text to Code
Input (English): Step 1: For each row in Rooms table, find the corresponding rows in Reservations table.
Step 2: find the summation of Adults in the results of step 1 whose bedType equals modern
Output (English): SELECT Sum ( T2.Adults ) FROM Rooms AS T1 JOIN Reservations AS T2 ON T1.RoomId = T2.Room WHERE T1.bedType = "modern"