[{"columns":["RoomId","roomName","beds","bedType","maxOccupancy","basePrice","decor"],"name":"Rooms","type":"grid"}]

Find the names of all modern rooms with a base price below $160 and two beds.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":"<","value":160},{"actionType":"ChangeCondition","column":"beds","operation":"=","value":2},{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"modern"}]}}

What are the names of modern rooms that have a base price lower than $160 and two beds.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":"<","value":160},{"actionType":"ChangeCondition","column":"beds","operation":"=","value":2},{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"modern"}]}}

Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":">","value":160},{"actionType":"ChangeCondition","column":"maxOccupancy","operation":">","value":2}]}}

What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two people.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":">","value":160},{"actionType":"ChangeCondition","column":"maxOccupancy","operation":">","value":2}]}}

How many king beds are there?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"beds","aggregation":"sum"},{"actionType":"ChangeCondition","column":"bedtype","operation":"=","value":"King"}]}}

Find the total number of king beds available.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"beds","aggregation":"sum"},{"actionType":"ChangeCondition","column":"bedtype","operation":"=","value":"King"}]}}

List the names and decor of rooms that have a king bed. Sort the list by their price.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedtype","operation":"=","value":"King"},{"actionType":"ChangeSorting","column":"basePrice","direction":"ask"}]}}

What are the names and decor of rooms with a king bed? Sort them by their price

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedtype","operation":"=","value":"King"},{"actionType":"ChangeSorting","column":"basePrice","direction":"ask"}]}}

Which room has cheapest base price? List the room's name and the base price.

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":1,"aggregation":"avg","direction":"ask"}]}}

What are the room name and base price of the room with the lowest base price?

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":1,"aggregation":"avg","direction":"ask"}]}}

What is the decor of room Recluse and defiance?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"roomName","operation":"=","value":"'Recluse and defiance'"}]}}

Return the decor of the room named "Recluse and defiance".

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"roomName","operation":"=","value":"'Recluse and defiance'"}]}}

What is the average base price of different bed type? List bed type and average base price.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"basePrice","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"bedType"}]}}

For each bed type, find the average base price of different bed type.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"basePrice","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"bedType"}]}}

What is the total number of people who could stay in the modern rooms in this inn?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"maxOccupancy","aggregation":"sum"},{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"modern"}]}}

How many people in total can stay in the modern rooms of this inn?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"maxOccupancy","aggregation":"sum"},{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"modern"}]}}

Find the number of rooms with a king bed.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedType","operation":"=","value":"'King'"}]}}

How many rooms have a king bed?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedType","operation":"=","value":"'King'"}]}}

Find the number of rooms for each bed type.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"bedType"}]}}

What are the number of rooms for each bed type?

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"bedType"}]}}

Find the name of the room with the maximum occupancy.

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"maxOccupancy","limit":1,"aggregation":"avg","direction":"desk"}]}}

What is the name of the room that can accommodate the most people?

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"maxOccupancy","limit":1,"aggregation":"avg","direction":"desk"}]}}

Find the id and name of the most expensive base price room.

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":1,"aggregation":"avg","direction":"desk"}]}}

Which room has the highest base price?

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":1,"aggregation":"avg","direction":"desk"}]}}

List the type of bed and name of all traditional rooms.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"'traditional'"}]}}

What are the bed type and name of all the rooms with traditional decor?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"decor","operation":"=","value":"'traditional'"}]}}

Find the number of rooms with king bed for each decor type.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedType","operation":"=","value":"'King'"},{"actionType":"ChangeGrouping","column":"decor"}]}}

How many rooms have king beds? Report the number for each decor type.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"bedType","operation":"=","value":"'King'"},{"actionType":"ChangeGrouping","column":"decor"}]}}

List the name of all rooms sorted by their prices.

{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"basePrice","direction":"ask"}]}}

Sort all the rooms according to the price. Just report the room names.

{"dsl":{"actions":[{"actionType":"ChangeSorting","column":"basePrice","direction":"ask"}]}}

Find the number of rooms with price higher than 120 for different decor.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":">","value":120},{"actionType":"ChangeGrouping","column":"decor"}]}}

How many rooms cost more than 120, for each different decor?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"basePrice","operation":">","value":120},{"actionType":"ChangeGrouping","column":"decor"}]}}

For each bed type, find the average room price.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"basePrice","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"bedType"}]}}

What is the average base price of rooms, for each bed type?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"basePrice","aggregation":"avg"},{"actionType":"ChangeGrouping","column":"bedType"}]}}

How many different types of beds are there?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"bedType","aggregation":"count"}]}}

Find the number of distinct bed types available in this inn.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"bedType","aggregation":"count"}]}}

Find the name and id of the top 3 expensive rooms.

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":3,"aggregation":"avg","direction":"desk"}]}}

What are the name and id of the three highest priced rooms?

{"dsl":{"actions":[{"actionType":"ChangeTopFilter","column":"basePrice","limit":3,"aggregation":"avg","direction":"desk"}]}}