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

Convert text to sql: How many books fall into each category? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select category , count ( * ) from book_club group by category
### Instruction:

Convert text to sql: List categories that have at least two books after year 1989. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ group by _ having count ( _ ) >= _ | select category from book_club where year > 1989 group by category having count ( * ) >= 2
### Instruction:

Convert text to sql: What categories have two or more corresponding books that were made after 1989? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ group by _ having count ( _ ) >= _ | select category from book_club where year > 1989 group by category having count ( * ) >= 2
### Instruction:

Convert text to sql: Show publishers with a book published in 1989 and a book in 1990. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select publisher from book_club where year = 1989 intersect select publisher from book_club where year = 1990
### Instruction:

Convert text to sql: What are the publishers who have published a book in both 1989 and 1990? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select publisher from book_club where year = 1989 intersect select publisher from book_club where year = 1990
### Instruction:

Convert text to sql: Show all publishers which do not have a book in 1989. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ except select _ from _ where _ | select publisher from book_club except select publisher from book_club where year = 1989
### Instruction:

Convert text to sql: Which publishers did not publish a book in 1989? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ except select _ from _ where _ | select publisher from book_club except select publisher from book_club where year = 1989
### Instruction:

Convert text to sql: Show all movie titles, years, and directors, ordered by budget. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ order by _ asc | select title , year , director from movie order by budget_million asc
### Instruction:

Convert text to sql: What are the titles, years, and directors of all movies, ordered by budget in millions? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ order by _ asc | select title , year , director from movie order by budget_million asc
### Instruction:

Convert text to sql: How many movie directors are there? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct director ) from movie
### Instruction:

Convert text to sql: Count the number of different directors. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct director ) from movie
### Instruction:

Convert text to sql: What is the title and director for the movie with highest worldwide gross in the year 2000 or before? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1
### Instruction:

Convert text to sql: Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1
### Instruction:

Convert text to sql: Show all director names who have a movie in both year 1999 and 2000. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select director from movie where year = 2000 intersect select director from movie where year = 1999
### Instruction:

Convert text to sql: Which directors had a movie both in the year 1999 and 2000? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select director from movie where year = 2000 intersect select director from movie where year = 1999
### Instruction:

Convert text to sql: Show all director names who have a movie in the year 1999 or 2000. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select director from movie where year = 1999 or year = 2000
### Instruction:

Convert text to sql: Which directors had a movie in either 1999 or 2000? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select director from movie where year = 1999 or year = 2000
### Instruction:

Convert text to sql: What is the average, maximum, and minimum budget for all movies before 2000. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select avg ( _ ) , max ( _ ) , min ( _ ) from _ where _ | select avg ( budget_million ) , max ( budget_million ) , min ( budget_million ) from movie where year < 2000
### Instruction:

Convert text to sql: Return the average, maximum, and minimum budgets in millions for movies made before the year 2000. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select avg ( _ ) , max ( _ ) , min ( _ ) from _ where _ | select avg ( budget_million ) , max ( budget_million ) , min ( budget_million ) from movie where year < 2000
### Instruction:

Convert text to sql: List all company names with a book published by Alyson. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select culture_company.company_name from culture_company join book_club on culture_company.book_club_id = book_club.book_club_id where book_club.publisher = 'Alyson'
### Instruction:

Convert text to sql: What are all the company names that have a book published by Alyson? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select culture_company.company_name from culture_company join book_club on culture_company.book_club_id = book_club.book_club_id where book_club.publisher = 'Alyson'
### Instruction:

Convert text to sql: Show the movie titles and book titles for all companies in China. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select movie.title , book_club.book_title from movie join culture_company on movie.movie_id = culture_company.movie_id join book_club on book_club.book_club_id = culture_company.book_club_id where culture_company.incorporated_in = 'China'
### Instruction:

Convert text to sql: What are the titles of movies and books corresponding to companies incorporated in China? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select movie.title , book_club.book_title from movie join culture_company on movie.movie_id = culture_company.movie_id join book_club on book_club.book_club_id = culture_company.book_club_id where culture_company.incorporated_in = 'China'
### Instruction:

Convert text to sql: Show all company names with a movie directed in year 1999. | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select culture_company.company_name from movie join culture_company on movie.movie_id = culture_company.movie_id where movie.year = 1999
### Instruction:

Convert text to sql: What are all company names that have a corresponding movie directed in the year 1999? | book_club : book_club_id , year , author_or_editor , book_title , publisher , category , result | movie : movie_id , title , year , director , budget_million , gross_worldwide | culture_company : company_name , type , incorporated_in , group_equity_shareholding , book_club_id , movie_id | culture_company.movie_id = movie.movie_id | culture_company.book_club_id = book_club.book_club_id | 

### Response:

select _ from _ where _ | select culture_company.company_name from movie join culture_company on movie.movie_id = culture_company.movie_id where movie.year = 1999