richardr1126/spider-skeleton-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ < ( select max ( _ ) from _ ) | select accounts.custid , accounts.name from accounts join checking on accounts.custid = checking.custid where checking.balance < ( select max ( balance ) from checking )
### Instruction:

Convert text to sql: What is the checking balance of the account whose owner's name contains the substring 'ee'? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ like _ | select checking.balance from accounts join checking on accounts.custid = checking.custid where accounts.name like '%ee%'
### Instruction:

Convert text to sql: Find the balance of the checking account belonging to an owner whose name contains 'ee'. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ like _ | select checking.balance from accounts join checking on accounts.custid = checking.custid where accounts.name like '%ee%'
### Instruction:

Convert text to sql: Find the checking balance and saving balance in the Brown's account. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ | select checking.balance , savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where accounts.name = 'Brown'
### Instruction:

Convert text to sql: What are the checking and savings balances in accounts belonging to Brown? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ | select checking.balance , savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where accounts.name = 'Brown'
### Instruction:

Convert text to sql: Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) intersect select _ from _ where _ < ( select avg ( _ ) from _ ) | select accounts.name from accounts join checking on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from checking ) intersect select accounts.name from accounts join savings on accounts.custid = savings.custid where savings.balance < ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) intersect select _ from _ where _ < ( select avg ( _ ) from _ ) | select accounts.name from accounts join checking on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from checking ) intersect select accounts.name from accounts join savings on accounts.custid = savings.custid where savings.balance < ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: Find the checking balance of the accounts whose savings balance is higher than the average savings balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ in ( select _ from _ where _ > ( select avg ( _ ) from _ ) ) | select savings.balance from accounts join checking on accounts.custid = savings.custid where accounts.name in ( select accounts.name from accounts join savings on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from savings ) )
### Instruction:

Convert text to sql: What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ in ( select _ from _ where _ > ( select avg ( _ ) from _ ) ) | select savings.balance from accounts join checking on accounts.custid = savings.custid where accounts.name in ( select accounts.name from accounts join savings on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from savings ) )
### Instruction:

Convert text to sql: List all customers' names in the alphabetical order. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc | select name from accounts order by name asc
### Instruction:

Convert text to sql: What are the names of all the customers in alphabetical order? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc | select name from accounts order by name asc
### Instruction:

Convert text to sql: Find the name of account that has the lowest total checking and saving balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ + _ asc limit _ | select accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance + savings.balance asc limit 1
### Instruction:

Convert text to sql: What is the name corresponding to the accoung with the lowest sum of checking and savings balances? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ + _ asc limit _ | select accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance + savings.balance asc limit 1
### Instruction:

Convert text to sql: Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ where _ > ( select avg ( _ ) from _ ) | select accounts.name , checking.balance + savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ where _ > ( select avg ( _ ) from _ ) | select accounts.name , checking.balance + savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where savings.balance > ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: Find the name and checking balance of the account with the lowest savings balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc limit _ | select accounts.name , checking.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by savings.balance asc limit 1
### Instruction:

Convert text to sql: What are the names and balances of checking accounts belonging to the customer with the lowest savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc limit _ | select accounts.name , checking.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by savings.balance asc limit 1
### Instruction:

Convert text to sql: Find the number of checking accounts for each account name. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , accounts.name from accounts join checking on accounts.custid = checking.custid group by accounts.name
### Instruction:

Convert text to sql: What are the names of customers with accounts, and how many checking accounts do each of them have? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , accounts.name from accounts join checking on accounts.custid = checking.custid group by accounts.name
### Instruction:

Convert text to sql: Find the total saving balance for each account name. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) , _ from _ group by _ | select sum ( savings.balance ) , accounts.name from accounts join savings on accounts.custid = savings.custid group by accounts.name
### Instruction:

Convert text to sql: What are the names of customers with accounts, and what are the total savings balances for each? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) , _ from _ group by _ | select sum ( savings.balance ) , accounts.name from accounts join savings on accounts.custid = savings.custid group by accounts.name
### Instruction:

Convert text to sql: Find the name of accounts whose checking balance is below the average checking balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select accounts.name from accounts join checking on accounts.custid = checking.custid where checking.balance < ( select avg ( balance ) from checking )
### Instruction:

Convert text to sql: What are the names of customers with checking balances lower than the average checking balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select accounts.name from accounts join checking on accounts.custid = checking.custid where checking.balance < ( select avg ( balance ) from checking )
### Instruction:

Convert text to sql: Find the saving balance of the account with the highest checking balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ desc limit _ | select savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance desc limit 1
### Instruction:

Convert text to sql: What is the savings balance of the account belonging to the customer with the highest checking balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ desc limit _ | select savings.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance desc limit 1
### Instruction:

Convert text to sql: Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ order by _ + _ asc | select checking.balance + savings.balance from checking join savings on checking.custid = savings.custid order by checking.balance + savings.balance asc
### Instruction:

Convert text to sql: What is the sum of checking and savings balances for all customers, ordered by the total balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ order by _ + _ asc | select checking.balance + savings.balance from checking join savings on checking.custid = savings.custid order by checking.balance + savings.balance asc
### Instruction:

Convert text to sql: Find the name and checking balance of the account with the lowest saving balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc limit _ | select checking.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by savings.balance asc limit 1
### Instruction:

Convert text to sql: What is the name and checking balance of the account which has the lowest savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ asc limit _ | select checking.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by savings.balance asc limit 1
### Instruction:

Convert text to sql: Find the name, checking balance and saving balance of all accounts in the bank. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ | select checking.balance , savings.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid
### Instruction:

Convert text to sql: What are the names, checking balances, and savings balances for all customers? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ | select checking.balance , savings.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid
### Instruction:

Convert text to sql: Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ + _ desc | select checking.balance , savings.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance + savings.balance desc
### Instruction:

Convert text to sql: What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ + _ desc | select checking.balance , savings.balance , accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid order by checking.balance + savings.balance desc
### Instruction:

Convert text to sql: Find the name of accounts whose checking balance is higher than corresponding saving balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ | select accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where checking.balance > savings.balance
### Instruction:

Convert text to sql: What are the names of customers with a higher checking balance than savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ | select accounts.name from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where checking.balance > savings.balance
### Instruction:

Convert text to sql: Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ where _ | select accounts.name , savings.balance + checking.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where savings.balance < checking.balance
### Instruction:

Convert text to sql: 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? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ + _ from _ where _ | select accounts.name , savings.balance + checking.balance from accounts join checking on accounts.custid = checking.custid join savings on accounts.custid = savings.custid where savings.balance < checking.balance
### Instruction:

Convert text to sql: Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ desc limit _ | select accounts.name , savings.balance from accounts join savings on accounts.custid = savings.custid order by savings.balance desc limit 3
### Instruction:

Convert text to sql: What are names and savings balances of the three accounts with the highest savings balances? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ order by _ desc limit _ | select accounts.name , savings.balance from accounts join savings on accounts.custid = savings.custid order by savings.balance desc limit 3
### Instruction:

Convert text to sql: How many main stream browsers whose market share is at least 5 exist? | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from browser where market_share >= 5
### Instruction:

Convert text to sql: List the name of browsers in descending order by market share. | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select _ from _ order by _ desc | select name from browser order by market_share desc
### Instruction:

Convert text to sql: List the ids, names and market shares of all browsers. | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select _ from _ | select id , name , market_share from browser
### Instruction:

Convert text to sql: What is the maximum, minimum and average market share of the listed browsers? | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select max ( _ ) , min ( _ ) , avg ( _ ) from _ | select max ( market_share ) , min ( market_share ) , avg ( market_share ) from browser
### Instruction:

Convert text to sql: What is the id and market share of the browser Safari? | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select _ from _ where _ | select id , market_share from browser where name = 'Safari'
### Instruction:

Convert text to sql: What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection? | web_client_accelerator : id , name , operating_system , client , connection | browser : id , name , market_share | accelerator_compatible_browser : accelerator_id , browser_id , compatible_since_year | accelerator_compatible_browser.browser_id = browser.id | accelerator_compatible_browser.accelerator_id = web_client_accelerator.id | 

### Response:

select _ from _ where _ | select name , operating_system from web_client_accelerator where connection != 'Broadband'