[{"columns":["cust_ID","cust_name","acc_type","acc_bal","no_of_loans","credit_score","branch_ID","state"],"name":"customer","type":"grid"}]

List the name of all customers sorted by their account balance in ascending order.

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

What are the names of all customers, ordered by account balance?

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

Find the state, account type, and credit score of the customer whose number of loan is 0.

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"no_of_loans","operation":"=","value":0}]}}

What are the states, account types, and credit scores for customers who have 0 loans?

{"dsl":{"actions":[{"actionType":"ChangeCondition","column":"no_of_loans","operation":"=","value":0}]}}

How many distinct types of accounts are there?

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

Count the number of different account types.

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

Find the name of customer who has the lowest credit score.

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

What is the name of the customer with the worst credit score?

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

Find the name, account type, and account balance of the customer who has the highest credit score.

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

What is the name, account type, and account balance corresponding to the customer with the highest credit score?

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

For each account type, find the average account balance of customers with credit score lower than 50.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"acc_bal","aggregation":"avg"},{"actionType":"ChangeCondition","column":"credit_score","operation":"<","value":50},{"actionType":"ChangeGrouping","column":"acc_type"}]}}

What is the average account balance of customers with credit score below 50 for the different account types?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"acc_bal","aggregation":"avg"},{"actionType":"ChangeCondition","column":"credit_score","operation":"<","value":50},{"actionType":"ChangeGrouping","column":"acc_type"}]}}

For each state, find the total account balance of customers whose credit score is above 100.

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"acc_bal","aggregation":"sum"},{"actionType":"ChangeCondition","column":"credit_score","operation":">","value":100},{"actionType":"ChangeGrouping","column":"state"}]}}

What is the total account balance for customers with a credit score of above 100 for the different states?

{"dsl":{"actions":[{"actionType":"ChangeAggregations","column":"acc_bal","aggregation":"sum"},{"actionType":"ChangeCondition","column":"credit_score","operation":">","value":100},{"actionType":"ChangeGrouping","column":"state"}]}}