richardr1126/spider-context-instruct huggingface dataset:
### 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ( 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 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 name , operating_system from web_client_accelerator where connection != 'Broadband'
### Instruction:

Convert text to sql: What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ? | 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 browser.name from browser join accelerator_compatible_browser on browser.id = accelerator_compatible_browser.browser_id join web_client_accelerator on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id where web_client_accelerator.name = 'CProxy' and accelerator_compatible_browser.compatible_since_year > 1998

### Instruction:

Convert text to sql: What are the ids and names of the web accelerators that are compatible with two or more 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 web_client_accelerator.id , web_client_accelerator.name from web_client_accelerator join accelerator_compatible_browser on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id group by web_client_accelerator.id having count ( * ) >= 2

### Instruction:

Convert text to sql: What is the id and name of the browser that is compatible with the most web accelerators? | 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 browser.id , browser.name from browser join accelerator_compatible_browser on browser.id = accelerator_compatible_browser.browser_id group by browser.id order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible? | 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 accelerator_compatible_browser.compatible_since_year from accelerator_compatible_browser join browser on accelerator_compatible_browser.browser_id = browser.id join web_client_accelerator on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id where web_client_accelerator.name = 'CACHEbox' and browser.name = 'Internet Explorer'
### Instruction:

Convert text to sql: How many different kinds of clients are supported by the web clients accelerators? | 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 ( distinct client ) from web_client_accelerator

### Instruction:

Convert text to sql: How many accelerators are not compatible with the browsers listed ? | 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 web_client_accelerator where id not in ( select accelerator_id from accelerator_compatible_browser )

### Instruction:

Convert text to sql: What distinct accelerator names are compatible with the browswers that have market share higher than 15? | 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 distinct web_client_accelerator.name from web_client_accelerator join accelerator_compatible_browser on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id join browser on accelerator_compatible_browser.browser_id = browser.id where browser.market_share > 15

### Instruction:

Convert text to sql: List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'. | 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 browser.name from web_client_accelerator join accelerator_compatible_browser on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id join browser on accelerator_compatible_browser.browser_id = browser.id where web_client_accelerator.name = 'CACHEbox' intersect select browser.name from web_client_accelerator join accelerator_compatible_browser on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id join browser on accelerator_compatible_browser.browser_id = browser.id where web_client_accelerator.name = 'Fasterfox'
### Instruction:

Convert text to sql: Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. | 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 name , operating_system from web_client_accelerator except select web_client_accelerator.name , web_client_accelerator.operating_system from web_client_accelerator join accelerator_compatible_browser on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id join browser on accelerator_compatible_browser.browser_id = browser.id where browser.name = 'Opera'

### Instruction:

Convert text to sql: Which accelerator name contains substring "Opera"? | 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 name from web_client_accelerator where name like '%Opera%'

### Instruction:

Convert text to sql: Find the number of web accelerators used for each Operating system. | 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 operating_system , count ( * ) from web_client_accelerator group by operating_system

### Instruction:

Convert text to sql: give me names of all compatible browsers and accelerators in the descending order of compatible year | 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 browser.name , web_client_accelerator.name from accelerator_compatible_browser join browser on accelerator_compatible_browser.browser_id = browser.id join web_client_accelerator on accelerator_compatible_browser.accelerator_id = web_client_accelerator.id order by accelerator_compatible_browser.compatible_since_year desc
### Instruction:

Convert text to sql: How many wrestlers are there? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select count ( * ) from wrestler

### Instruction:

Convert text to sql: Count the number of wrestlers. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select count ( * ) from wrestler

### Instruction:

Convert text to sql: List the names of wrestlers in descending order of days held. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler order by days_held desc

### Instruction:

Convert text to sql: What are the names of the wrestlers, ordered descending by days held? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler order by days_held desc

### Instruction:

Convert text to sql: What is the name of the wrestler with the fewest days held? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler order by days_held asc limit 1

### Instruction:

Convert text to sql: Return the name of the wrestler who had the lowest number of days held. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler order by days_held asc limit 1

### Instruction:

Convert text to sql: What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select distinct reign from wrestler where location != 'Tokyo , Japan'

### Instruction:

Convert text to sql: Give the different reigns of wrestlers who are not located in Tokyo, Japan. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select distinct reign from wrestler where location != 'Tokyo , Japan'