db_id,question,query,simple_question,simple_query,source small_bank_1,Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.,"SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings);",Find the names and savings balance of accounts whose savings balance is higher than the average savings balance.,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings);",train-spider small_bank_1,What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?,"SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings);",What are the names and checking balance for accounts with savings balances higher than the average savings balance?,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings);",train-spider small_bank_1,Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.,SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance;,Find the checking balance of all accounts sorted by the saving balance in ascending order.,SELECT T1.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance;,train-spider small_bank_1,"What is the sum of checking and savings balances for all customers, ordered by the total balance?",SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance;,"What is the checking balance for all customers, ordered by the checking balance?",SELECT balance FROM checking ORDER BY balance,train-spider small_bank_1,Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.,"SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance;",Find the name and checking balance of the accounts whose savings balance is lower than corresponding checking balance.,"SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance;",train-spider small_bank_1,"What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?","SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance;","What are the names of customers who have a savings balance lower than their checking balance, and what is the savings balances?","SELECT T1.name , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance;",train-spider