[{"columns":["id","customer_id","invoice_date","billing_address","billing_city","billing_state","billing_country","billing_postal_code","total"],"name":"invoices","type":"grid"}]

A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"SUM"},{"actionType":"ChangeGrouping","column":"billing_country"},{"actionType":"ChangeTopFilter","column":"total","limit":8,"aggregation":"SUM","direction":"desk"}]}}

What are the names of the top 8 countries by total invoice size and what are those sizes?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"SUM"},{"actionType":"ChangeGrouping","column":"billing_country"},{"actionType":"ChangeTopFilter","column":"total","limit":8,"aggregation":"SUM","direction":"desk"}]}}

A list of the top 10 countries by average invoice size. List country name and average invoice size.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"AVG"},{"actionType":"ChangeGrouping","column":"billing_country"},{"actionType":"ChangeTopFilter","column":"total","limit":10,"aggregation":"AVG","direction":"desk"}]}}

What are the names of the countries and average invoice size of the top countries by size?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"AVG"},{"actionType":"ChangeGrouping","column":"billing_country"},{"actionType":"ChangeTopFilter","column":"total","limit":10,"aggregation":"AVG","direction":"desk"}]}}

List total amount of  invoice from Chicago, IL.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"sum"},{"actionType":"ChangeCondition","column":"billing_city","operation":"=","value":"'Chicago'"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'IL'"}]}}

What are the total amount of money in the invoices billed from Chicago, Illinois?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"sum"},{"actionType":"ChangeCondition","column":"billing_city","operation":"=","value":"'Chicago'"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'IL'"}]}}

List the number of invoices from Chicago, IL.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"billing_city","operation":"=","value":"'Chicago'"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'IL'"}]}}

How many invoices were billed from Chicago, IL?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"billing_city","operation":"=","value":"'Chicago'"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'IL'"}]}}

List the number of invoices from the US, grouped by state.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"billing_country","operation":"=","value":"'USA'"},{"actionType":"ChangeGrouping","column":"billing_state"}]}}

How many invoices were billed from each state?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"billing_country","operation":"=","value":"'USA'"},{"actionType":"ChangeGrouping","column":"billing_state"}]}}

List the number of invoices and the invoice total from California.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"SUM"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'CA'"}]}}

What is the number of invoices and total money billed in them from CA?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"total","aggregation":"SUM"},{"actionType":"ChangeCondition","column":"billing_state","operation":"=","value":"'CA'"}]}}