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

Convert text to sql: Find the name of the ship that is steered by the youngest captain. | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ order by _ asc limit _ | select ship.name from ship join captain on ship.ship_id = captain.ship_id order by captain.age asc limit 1
### Instruction:

Convert text to sql: What is the name of the ship that is commanded by the youngest captain? | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ order by _ asc limit _ | select ship.name from ship join captain on ship.ship_id = captain.ship_id order by captain.age asc limit 1
### Instruction:

Convert text to sql: Find the name and flag of ships that are not steered by any captain with Midshipman rank. | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ where _ not in ( select _ from _ where _ ) | select name , flag from ship where ship_id not in ( select ship_id from captain where rank = 'Midshipman' )
### Instruction:

Convert text to sql: What are the names and flags of ships that do not have a captain with the rank of Midshipman? | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ where _ not in ( select _ from _ where _ ) | select name , flag from ship where ship_id not in ( select ship_id from captain where rank = 'Midshipman' )
### Instruction:

Convert text to sql: Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select ship.name from ship join captain on ship.ship_id = captain.ship_id where captain.rank = 'Midshipman' intersect select ship.name from ship join captain on ship.ship_id = captain.ship_id where captain.rank = 'Lieutenant'
### Instruction:

Convert text to sql: What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant? | captain : captain_id , name , ship_id , age , class , rank | ship : ship_id , name , type , built_year , class , flag | captain.ship_id = ship.ship_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select ship.name from ship join captain on ship.ship_id = captain.ship_id where captain.rank = 'Midshipman' intersect select ship.name from ship join captain on ship.ship_id = captain.ship_id where captain.rank = 'Lieutenant'
### Instruction:

Convert text to sql: What is id of the city that hosted events in the most recent year? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select host_city from hosting_city order by year desc limit 1
### Instruction:

Convert text to sql: Find the city that hosted some events in the most recent year. What is the id of this city? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select host_city from hosting_city order by year desc limit 1
### Instruction:

Convert text to sql: Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select match_id from match where competition = '1994 FIFA World Cup qualification'
### Instruction:

Convert text to sql: What is the match id of the competition called "1994 FIFA World Cup qualification"? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select match_id from match where competition = '1994 FIFA World Cup qualification'
### Instruction:

Convert text to sql: Find the cities which were once a host city after 2010? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city.city from city join hosting_city on city.city_id = hosting_city.host_city where hosting_city.year > 2010
### Instruction:

Convert text to sql: Which cities served as a host city after 2010? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city.city from city join hosting_city on city.city_id = hosting_city.host_city where hosting_city.year > 2010
### Instruction:

Convert text to sql: Which city has hosted the most events? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select city.city from city join hosting_city on city.city_id = hosting_city.host_city group by hosting_city.host_city order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the city that hosted the most events. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select city.city from city join hosting_city on city.city_id = hosting_city.host_city group by hosting_city.host_city order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select match.venue from city join hosting_city on city.city_id = hosting_city.host_city join match on hosting_city.match_id = match.match_id where city.city = 'Nanjing ( Jiangsu )' and match.competition = '1994 FIFA World Cup qualification'
### Instruction:

Convert text to sql: Find the venue of the competition "1994 FIFA World Cup qualification" which was hosted by "Nanjing ( Jiangsu )". | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select match.venue from city join hosting_city on city.city_id = hosting_city.host_city join match on hosting_city.match_id = match.match_id where city.city = 'Nanjing ( Jiangsu )' and match.competition = '1994 FIFA World Cup qualification'
### Instruction:

Convert text to sql: Give me the temperature of Shanghai in January. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select temperature.jan from city join temperature on city.city_id = temperature.city_id where city.city = 'Shanghai'
### Instruction:

Convert text to sql: What is the temperature of "Shanghai" city in January? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select temperature.jan from city join temperature on city.city_id = temperature.city_id where city.city = 'Shanghai'
### Instruction:

Convert text to sql: What is the host year of city "Taizhou ( Zhejiang )"? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select hosting_city.year from city join hosting_city on city.city_id = hosting_city.host_city where city.city = 'Taizhou ( Zhejiang )'
### Instruction:

Convert text to sql: IN which year did city "Taizhou ( Zhejiang )" serve as a host city? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select hosting_city.year from city join hosting_city on city.city_id = hosting_city.host_city where city.city = 'Taizhou ( Zhejiang )'
### Instruction:

Convert text to sql: Which three cities have the largest regional population? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select city from city order by regional_population desc limit 3
### Instruction:

Convert text to sql: What are the three largest cities in terms of regional population? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select city from city order by regional_population desc limit 3
### Instruction:

Convert text to sql: Which city has the lowest GDP? Please list the city name and its GDP. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ asc limit _ | select city , gdp from city order by gdp asc limit 1
### Instruction:

Convert text to sql: What is the city with the smallest GDP? Return the city and its GDP. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ asc limit _ | select city , gdp from city order by gdp asc limit 1
### Instruction:

Convert text to sql: Which city has the highest temperature in February? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select city.city from city join temperature on city.city_id = temperature.city_id order by temperature.feb desc limit 1
### Instruction:

Convert text to sql: In February, which city marks the highest temperature? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ order by _ desc limit _ | select city.city from city join temperature on city.city_id = temperature.city_id order by temperature.feb desc limit 1
### Instruction:

Convert text to sql: Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.jul or temperature.mar > temperature.oct
### Instruction:

Convert text to sql: Which cities' temperature in March is lower than that in July or higher than that in Oct? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.jul or temperature.mar > temperature.oct
### Instruction:

Convert text to sql: Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ intersect select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.jul intersect select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Which cities have lower temperature in March than in July and have been once host cities? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ intersect select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.jul intersect select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ except select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.dec except select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Which cities have lower temperature in March than in Dec and have never served as host cities? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ except select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.mar < temperature.dec except select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ union select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.feb > temperature.jun union select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Which cities have higher temperature in Feb than in Jun or have once served as host cities? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ union select _ from _ | select city.city from city join temperature on city.city_id = temperature.city_id where temperature.feb > temperature.jun union select city.city from city join hosting_city on city.city_id = hosting_city.host_city
### Instruction:

Convert text to sql: Please give me a list of cities whose regional population is over 10000000. | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city from city where regional_population > 10000000
### Instruction:

Convert text to sql: Which cities have regional population above 10000000? | city : city_id , city , hanzi , hanyu_pinyin , regional_population , gdp | match : match_id , date , venue , score , result , competition | temperature : city_id , jan , feb , mar , apr , jun , jul , aug , sep , oct , nov , dec | hosting_city : year , match_id , host_city | temperature.city_id = city.city_id | hosting_city.match_id = match.match_id | hosting_city.host_city = city.city_id | 

### Response:

select _ from _ where _ | select city from city where regional_population > 10000000