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
what is the average of rates?
assistant
SELECT AVG ( Rate ) FROM Reservations;
human
show me a list of check outs?
assistant
SELECT CheckOut FROM Reservations;
human
show me a list of check in?
assistant
SELECT CheckIn FROM Reservations;
human
how many adults stay in the room contad selbig checked in on oct 23, 2010?
assistant
SELECT COUNT( Adults ) FROM Reservations WHERE CheckIn = "2010-10-23" AND FirstName = "CONRAD" AND LastName = "SELBIG" ;