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

Convert text to sql: What are the low and high estimates of film markets? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select low_estimate , high_estimate from film_market_estimation

### Instruction:

Convert text to sql: Return the low and high estimates for all film markets. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select low_estimate , high_estimate from film_market_estimation

### Instruction:

Convert text to sql: What are the types of film market estimations in year 1995? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select type from film_market_estimation where year = 1995

### Instruction:

Convert text to sql: Return the types of film market estimations in 1995. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select type from film_market_estimation where year = 1995

### Instruction:

Convert text to sql: What are the maximum and minimum number of cities in all markets. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select max ( number_cities ) , min ( number_cities ) from market

### Instruction:

Convert text to sql: Return the maximum and minimum number of cities across all markets. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select max ( number_cities ) , min ( number_cities ) from market
### Instruction:

Convert text to sql: How many markets have number of cities smaller than 300? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select count ( * ) from market where number_cities < 300

### Instruction:

Convert text to sql: Count the number of markets that have a number of cities lower than 300. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select count ( * ) from market where number_cities < 300

### Instruction:

Convert text to sql: List all countries of markets in ascending alphabetical order. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select country from market order by country asc

### Instruction:

Convert text to sql: What are the countries for each market, ordered alphabetically? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select country from market order by country asc

### Instruction:

Convert text to sql: List all countries of markets in descending order of number of cities. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select country from market order by number_cities desc

### Instruction:

Convert text to sql: What are the countries for each market ordered by decreasing number of cities? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select country from market order by number_cities desc
### Instruction:

Convert text to sql: Please show the titles of films and the types of market estimations. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film.title , film_market_estimation.type from film join film_market_estimation on film.film_id = film_market_estimation.film_id

### Instruction:

Convert text to sql: What are the titles of films and corresponding types of market estimations? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film.title , film_market_estimation.type from film join film_market_estimation on film.film_id = film_market_estimation.film_id

### Instruction:

Convert text to sql: Show the distinct director of films with market estimation in the year of 1995. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select distinct film.director from film join film_market_estimation on film.film_id = film_market_estimation.film_id where film_market_estimation.year = 1995

### Instruction:

Convert text to sql: Who are the different directors of films which had market estimation in 1995? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select distinct film.director from film join film_market_estimation on film.film_id = film_market_estimation.film_id where film_market_estimation.year = 1995

### Instruction:

Convert text to sql: What is the average number of cities of markets with low film market estimate bigger than 10000? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select avg ( market.number_cities ) from film_market_estimation join market on film_market_estimation.market_id = market.market_id where film_market_estimation.low_estimate > 10000
### Instruction:

Convert text to sql: Give the average number of cities within markets that had a low market estimation larger than 10000? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select avg ( market.number_cities ) from film_market_estimation join market on film_market_estimation.market_id = market.market_id where film_market_estimation.low_estimate > 10000

### Instruction:

Convert text to sql: Please list the countries and years of film market estimations. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select market.country , film_market_estimation.year from film_market_estimation join market on film_market_estimation.market_id = market.market_id

### Instruction:

Convert text to sql: What are the countries of markets and their corresponding years of market estimation? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select market.country , film_market_estimation.year from film_market_estimation join market on film_market_estimation.market_id = market.market_id

### Instruction:

Convert text to sql: Please list the years of film market estimations when the market is in country "Japan" in descending order. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film_market_estimation.year from film_market_estimation join market on film_market_estimation.market_id = market.market_id where market.country = 'Japan' order by film_market_estimation.year desc
### Instruction:

Convert text to sql: What are the years of film market estimation for the market of Japan, ordered by year descending? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film_market_estimation.year from film_market_estimation join market on film_market_estimation.market_id = market.market_id where market.country = 'Japan' order by film_market_estimation.year desc

### Instruction:

Convert text to sql: List the studios of each film and the number of films produced by that studio. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio , count ( * ) from film group by studio

### Instruction:

Convert text to sql: How films are produced by each studio? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio , count ( * ) from film group by studio

### Instruction:

Convert text to sql: List the name of film studio that have the most number of films. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: What is the name of teh studio that created the most films? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: List the names of studios that have at least two films. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio having count ( * ) >= 2
### Instruction:

Convert text to sql: What are the names of studios that have made two or more films? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio having count ( * ) >= 2

### Instruction:

Convert text to sql: List the title of films that do not have any market estimation. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title from film where film_id not in ( select film_id from film_market_estimation )

### Instruction:

Convert text to sql: What are the titles of films that do not have a film market estimation? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title from film where film_id not in ( select film_id from film_market_estimation )

### Instruction:

Convert text to sql: Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film where director = 'Nicholas Meyer' intersect select studio from film where director = 'Walter Hill'

### Instruction:

Convert text to sql: What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film where director = 'Nicholas Meyer' intersect select studio from film where director = 'Walter Hill'
### Instruction:

Convert text to sql: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal". | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title , studio from film where studio like '%Universal%'

### Instruction:

Convert text to sql: What are the titles and studios of films that have been produced by a studio whose name contains "Universal"? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title , studio from film where studio like '%Universal%'

### Instruction:

Convert text to sql: Show the studios that have not produced films with director "Walter Hill". | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film except select studio from film where director = 'Walter Hill'

### Instruction:

Convert text to sql: Which studios have never worked with the director Walter Hill? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film except select studio from film where director = 'Walter Hill'

### Instruction:

Convert text to sql: List the studios which average gross is above 4500000. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio having avg ( gross_in_dollar ) >= 4500000
### Instruction:

Convert text to sql: Which studios have an average gross of over 4500000? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select studio from film group by studio having avg ( gross_in_dollar ) >= 4500000

### Instruction:

Convert text to sql: What is the title of the film that has the highest high market estimation. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film.title from film join film_market_estimation on film.film_id = film_market_estimation.film_id order by high_estimate desc limit 1

### Instruction:

Convert text to sql: Return the title of the film with the highest high estimate? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select film.title from film join film_market_estimation on film.film_id = film_market_estimation.film_id order by high_estimate desc limit 1

### Instruction:

Convert text to sql: What are the titles and directors of the films were never presented in China? | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title , director from film where film_id not in ( select film_id from film_market_estimation join market on film_market_estimation.market_id = market.market_id where country = 'China' )

### Instruction:

Convert text to sql: Return the titles and directors of films that were never in the market of China. | film : film_id , title , studio , director , gross_in_dollar | market : market_id , country , number_cities | film_market_estimation : estimation_id , low_estimate , high_estimate , film_id , type , market_id , year | film_market_estimation.market_id = market.market_id | film_market_estimation.film_id = film.film_id | 

### Response:

select title , director from film where film_id not in ( select film_id from film_market_estimation join market on film_market_estimation.market_id = market.market_id where country = 'China' )