[{"columns":["apt_id","building_id","apt_type_code","apt_number","bathroom_count","bedroom_count","room_count"],"name":"Apartments","type":"grid"}]

What is the average number of bedrooms of all apartments?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"bedroom_count","aggregation":"avg"}]}}

Find the average number of bedrooms of all the apartments.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"bedroom_count","aggregation":"avg"}]}}

What is the average number of rooms of apartments with type code "Studio"?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"room_count","aggregation":"avg"},{"actionType":"ChangeCondition","column":"apt_type_code","operation":"=","value":"'Studio'"}]}}

Find the average room count of the apartments that have the "Studio" type code.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"room_count","aggregation":"avg"},{"actionType":"ChangeCondition","column":"apt_type_code","operation":"=","value":"'Studio'"}]}}

Return the apartment numbers of the apartments with type code "Flat".

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

Which apartments have type code "Flat"? Give me their apartment numbers.

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

Return all the apartment numbers sorted by the room count in ascending order.

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

Sort the apartment numbers in ascending order of room count.

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

Return the apartment number with the largest number of bedrooms.

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

What is the apartment number of the apartment with the most beds?

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

Show the top 3 apartment type codes sorted by the average number of rooms in descending order.

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

What are the top three apartment types in terms of the average room count? Give me the

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

Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"apt_type_code"},{"actionType":"ChangeTopFilter","column":"room_count","limit":1,"aggregation":"sum","direction":"desk"}]}}

Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.

{"dsl":{"actions":[{"actionType":"ChangeGrouping","column":"apt_type_code"},{"actionType":"ChangeTopFilter","column":"room_count","limit":1,"aggregation":"sum","direction":"desk"}]}}