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

Convert text to sql: How many scientists do not have any projects assigned to them? | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from scientists where ssn not in ( select scientist from assignedto )
### Instruction:

Convert text to sql: Find the names of scientists who are not working on the project with the highest hours. | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ except select _ from _ where _ = ( select max ( _ ) from _ ) | select name from scientists except select scientists.name from assignedto join projects on assignedto.project = projects.code join scientists on assignedto.scientist = scientists.ssn where projects.hours = ( select max ( hours ) from projects )
### Instruction:

Convert text to sql: What are the names of scientists who are not working on the project with the most hours? | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ except select _ from _ where _ = ( select max ( _ ) from _ ) | select name from scientists except select scientists.name from assignedto join projects on assignedto.project = projects.code join scientists on assignedto.scientist = scientists.ssn where projects.hours = ( select max ( hours ) from projects )
### Instruction:

Convert text to sql: List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name. | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ order by _ asc , _ | select scientists.name , projects.name , projects.hours from scientists join assignedto on scientists.ssn = assignedto.scientist join projects on assignedto.project = projects.code order by projects.name asc , scientists.name
### Instruction:

Convert text to sql: What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name. | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ order by _ asc , _ | select scientists.name , projects.name , projects.hours from scientists join assignedto on scientists.ssn = assignedto.scientist join projects on assignedto.project = projects.code order by projects.name asc , scientists.name
### Instruction:

Convert text to sql: Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it. | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ where _ = ( select min ( _ ) from _ ) | select projects.name , scientists.name from assignedto join projects on assignedto.project = projects.code join scientists on assignedto.scientist = scientists.ssn where projects.hours = ( select min ( hours ) from projects )
### Instruction:

Convert text to sql: What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it? | scientists : ssn , name | projects : code , name , hours | assignedto : scientist , project | assignedto.project = projects.code | assignedto.scientist = scientists.ssn | 

### Response:

select _ from _ where _ = ( select min ( _ ) from _ ) | select projects.name , scientists.name from assignedto join projects on assignedto.project = projects.code join scientists on assignedto.scientist = scientists.ssn where projects.hours = ( select min ( hours ) from projects )
### Instruction:

Convert text to sql: What is the name of the highest rated wine? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ order by _ asc limit _ | select name from wine order by score asc limit 1
### Instruction:

Convert text to sql: Give the name of the wine with the highest score. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ order by _ asc limit _ | select name from wine order by score asc limit 1
### Instruction:

Convert text to sql: Which winery is the wine that has the highest score from? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ order by _ asc limit _ | select winery from wine order by score asc limit 1
### Instruction:

Convert text to sql: What is the winery at which the wine with the highest score was made? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ order by _ asc limit _ | select winery from wine order by score asc limit 1
### Instruction:

Convert text to sql: Find the names of all wines produced in 2008. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select name from wine where year = '2008'
### Instruction:

Convert text to sql: What are the names of all wines produced in 2008? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select name from wine where year = '2008'
### Instruction:

Convert text to sql: List the grapes and appelations of all wines. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select grape , appelation from wine
### Instruction:

Convert text to sql: What are the grapes and appelations of each wine? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select grape , appelation from wine
### Instruction:

Convert text to sql: List the names and scores of all wines. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select name , score from wine
### Instruction:

Convert text to sql: What are the names and scores of all wines? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select name , score from wine
### Instruction:

Convert text to sql: List the area and county of all appelations. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select area , county from appellations
### Instruction:

Convert text to sql: What are the areas and counties for all appelations? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ | select area , county from appellations
### Instruction:

Convert text to sql: What are the prices of wines produced before the year of 2010? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select price from wine where year < 2010
### Instruction:

Convert text to sql: Return the prices of wines produced before 2010. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select price from wine where year < 2010
### Instruction:

Convert text to sql: List the names of all distinct wines that have scores higher than 90. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select name from wine where score > 90
### Instruction:

Convert text to sql: What are the names of wines with scores higher than 90? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select name from wine where score > 90
### Instruction:

Convert text to sql: List the names of all distinct wines that are made of red color grape. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct wine.name from grapes join wine on grapes.grape = wine.grape where grapes.color = 'Red'
### Instruction:

Convert text to sql: What are the names of wines made from red grapes? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct wine.name from grapes join wine on grapes.grape = wine.grape where grapes.color = 'Red'
### Instruction:

Convert text to sql: Find the names of all distinct wines that have appellations in North Coast area. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct wine.name from appellations join wine on appellations.appelation = wine.appelation where appellations.area = 'North Coast'
### Instruction:

Convert text to sql: What are the distinct names of wines that have appellations in the North Coast area? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct wine.name from appellations join wine on appellations.appelation = wine.appelation where appellations.area = 'North Coast'
### Instruction:

Convert text to sql: How many wines are produced at Robert Biale winery? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from wine where winery = 'Robert Biale'
### Instruction:

Convert text to sql: Count the number of wines produced at Robert Biale winery. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from wine where winery = 'Robert Biale'
### Instruction:

Convert text to sql: How many appelations are in Napa Country? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from appellations where county = 'Napa'
### Instruction:

Convert text to sql: Count the number of appelations in Napa County. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from appellations where county = 'Napa'
### Instruction:

Convert text to sql: Give me the average prices of wines that are produced by appelations in Sonoma County. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select avg ( _ ) from _ where _ | select avg ( wine.price ) from appellations join wine on appellations.appelation = wine.appelation where appellations.county = 'Sonoma'
### Instruction:

Convert text to sql: What is the average price of wines produced in appelations in Sonoma County? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select avg ( _ ) from _ where _ | select avg ( wine.price ) from appellations join wine on appellations.appelation = wine.appelation where appellations.county = 'Sonoma'
### Instruction:

Convert text to sql: What are the names and scores of wines that are made of white color grapes? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name , wine.score from grapes join wine on grapes.grape = wine.grape where grapes.color = 'White'
### Instruction:

Convert text to sql: Give the names and scores of wines made from white grapes. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name , wine.score from grapes join wine on grapes.grape = wine.grape where grapes.color = 'White'
### Instruction:

Convert text to sql: Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select max ( _ ) from _ where _ | select max ( wine.price ) from appellations join wine on appellations.appelation = wine.appelation where appellations.area = 'Central Coast' and wine.year < 2005
### Instruction:

Convert text to sql: What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select max ( _ ) from _ where _ | select max ( wine.price ) from appellations join wine on appellations.appelation = wine.appelation where appellations.area = 'Central Coast' and wine.year < 2005
### Instruction:

Convert text to sql: Find the the grape whose white color grapes are used to produce wines with scores higher than 90. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct grapes.grape from grapes join wine on grapes.grape = wine.grape where grapes.color = 'White' and wine.score > 90
### Instruction:

Convert text to sql: Find the white grape used to produce wines with scores above 90. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select distinct _ from _ where _ | select distinct grapes.grape from grapes join wine on grapes.grape = wine.grape where grapes.color = 'White' and wine.score > 90
### Instruction:

Convert text to sql: What are the wines that have prices higher than 50 and made of Red color grapes? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name from grapes join wine on grapes.grape = wine.grape where grapes.color = 'Red' and wine.price > 50
### Instruction:

Convert text to sql: What are the names of wines made from red grapes and with prices above 50? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name from grapes join wine on grapes.grape = wine.grape where grapes.color = 'Red' and wine.price > 50
### Instruction:

Convert text to sql: What are the wines that have prices lower than 50 and have appelations in Monterey county? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name from appellations join wine on appellations.appelation = wine.appelation where appellations.county = 'Monterey' and wine.price < 50
### Instruction:

Convert text to sql: Give the neames of wines with prices below 50 and with appelations in Monterey county. | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select _ from _ where _ | select wine.name from appellations join wine on appellations.appelation = wine.appelation where appellations.county = 'Monterey' and wine.price < 50
### Instruction:

Convert text to sql: What are the numbers of wines for different grapes? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , grape from wine group by grape
### Instruction:

Convert text to sql: How many wines are there for each grape? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , grape from wine group by grape
### Instruction:

Convert text to sql: What are the average prices of wines for different years? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( price ) , year from wine group by year
### Instruction:

Convert text to sql: What is the average prices of wines for each each? | grapes : id , grape , color | appellations : no , appelation , county , state , area , isava | wine : no , grape , winery , appelation , state , name , year , price , score , cases , drink | wine.appelation = appellations.appelation | wine.grape = grapes.grape | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( price ) , year from wine group by year