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

Convert text to sql: list the names of the companies with more than 200 sales in the descending order of sales and profits. | people : people_id , age , name , nationality , graduation_college | company : company_id , name , headquarters , industry , sales_in_billion , profits_in_billion , assets_in_billion , market_value_in_billion | employment : company_id , people_id , year_working | employment.people_id = people.people_id | employment.company_id = company.company_id | 

### Response:

select _ from _ where _ order by _ desc | select name from company where sales_in_billion > 200 order by sales_in_billion , profits_in_billion desc
### Instruction:

Convert text to sql: How many film are there? | 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 _ | select count ( * ) from film
### Instruction:

Convert text to sql: Count the 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 count ( _ ) from _ | select count ( * ) from film
### Instruction:

Convert text to sql: List the distinct director of all 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 distinct _ from _ | select distinct director from film
### Instruction:

Convert text to sql: What are the different film Directors? | 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 _ from _ | select distinct director from film
### Instruction:

Convert text to sql: What is the average ticket sales gross in dollars 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 avg ( _ ) from _ | select avg ( gross_in_dollar ) from film
### Instruction:

Convert text to sql: Return the average gross sales in dollars across all 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 avg ( _ ) from _ | select avg ( gross_in_dollar ) from film
### 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 _ from _ | 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 _ from _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 ( _ ) , min ( _ ) from _ | 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 ( _ ) , min ( _ ) from _ | 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 _ where _ | 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 _ where _ | 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 _ from _ order by _ asc | 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 _ from _ order by _ asc | 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 _ from _ order by _ desc | 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 _ from _ order by _ desc | 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 _ from _ | 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 _ from _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 ( _ ) from _ where _ | 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 ( _ ) from _ where _ | 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 _ from _ | 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 _ from _ | 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 _ from _ where _ order by _ desc | 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 _ from _ where _ order by _ desc | 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 _ , count ( _ ) from _ group by _ | 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 _ , count ( _ ) from _ group by _ | 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 _ from _ group by _ order by count ( _ ) desc limit _ | 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 _ from _ group by _ order by count ( _ ) desc limit _ | 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 _ from _ group by _ having count ( _ ) >= _ | 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 _ from _ group by _ having count ( _ ) >= _ | 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 _ from _ where _ not in ( select _ from _ ) | 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 _ from _ where _ not in ( select _ from _ ) | 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 _ from _ where _ intersect select _ from _ where _ | 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 _ from _ where _ intersect select _ from _ where _ | 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 _ from _ where _ like _ | 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 _ from _ where _ like _ | 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 _ from _ except select _ from _ where _ | select studio from film except select studio from film where director = 'Walter Hill'