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

Convert text to sql: Return the name and max speed of the storm that affected the most regions. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select storm.name , storm.max_speed from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the name of storms which don't have affected region in record. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from storm where storm_id not in ( select storm_id from affected_region )
### Instruction:

Convert text to sql: What are the names of storms that did not affect any regions? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from storm where storm_id not in ( select storm_id from affected_region )
### Instruction:

Convert text to sql: Show storm name with at least two regions and 10 cities affected. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ intersect select _ from _ group by _ having sum ( _ ) >= _ | select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having count ( * ) >= 2 intersect select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having sum ( affected_region.number_city_affected ) >= 10
### Instruction:

Convert text to sql: What are the names of storms that both affected two or more regions and affected a total of 10 or more cities? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ intersect select _ from _ group by _ having sum ( _ ) >= _ | select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having count ( * ) >= 2 intersect select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having sum ( affected_region.number_city_affected ) >= 10
### Instruction:

Convert text to sql: Show all storm names except for those with at least two affected regions. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ except select _ from _ group by _ having count ( _ ) >= _ | select name from storm except select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having count ( * ) >= 2
### Instruction:

Convert text to sql: What are the names of storms that did not affect two or more regions? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ except select _ from _ group by _ having count ( _ ) >= _ | select name from storm except select storm.name from storm join affected_region on storm.storm_id = affected_region.storm_id group by storm.storm_id having count ( * ) >= 2
### Instruction:

Convert text to sql: What are the region names affected by the storm with a number of deaths of least 10? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ | select region.region_name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where storm.number_deaths >= 10
### Instruction:

Convert text to sql: Return the names of the regions affected by storms that had a death count of at least 10. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ | select region.region_name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where storm.number_deaths >= 10
### Instruction:

Convert text to sql: Show all storm names affecting region "Denmark". | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ | select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Denmark'
### Instruction:

Convert text to sql: What are the names of the storms that affected Denmark? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ | select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Denmark'
### Instruction:

Convert text to sql: Show the region name with at least two storms. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select region.region_name from region join affected_region on region.region_id = affected_region.region_id group by region.region_id having count ( * ) >= 2
### Instruction:

Convert text to sql: What are the names of regions with two or more storms? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select region.region_name from region join affected_region on region.region_id = affected_region.region_id group by region.region_id having count ( * ) >= 2
### Instruction:

Convert text to sql: Find the names of the regions which were affected by the storm that killed the greatest number of people. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ order by _ desc limit _ | select region.region_name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id order by storm.number_deaths desc limit 1
### Instruction:

Convert text to sql: What are the names of regions that were affected by the storm in which the most people died? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ order by _ desc limit _ | select region.region_name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id order by storm.number_deaths desc limit 1
### Instruction:

Convert text to sql: Find the name of the storm that affected both Afghanistan and Albania regions. | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Afghanistan' intersect select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Albania'
### Instruction:

Convert text to sql: What are the names of the storms that affected both the regions of Afghanistan and Albania? | storm : storm_id , name , dates_active , max_speed , damage_millions_usd , number_deaths | region : region_id , region_code , region_name | affected_region : region_id , storm_id , number_city_affected | affected_region.storm_id = storm.storm_id | affected_region.region_id = region.region_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Afghanistan' intersect select storm.name from affected_region join region on affected_region.region_id = region.region_id join storm on affected_region.storm_id = storm.storm_id where region.region_name = 'Albania'
### Instruction:

Convert text to sql: How many counties are there in total? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select count ( _ ) from _ | select count ( * ) from county
### Instruction:

Convert text to sql: Count the total number of counties. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select count ( _ ) from _ | select count ( * ) from county
### Instruction:

Convert text to sql: Show the county name and population of all counties. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ | select county_name , population from county
### Instruction:

Convert text to sql: What are the name and population of each county? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ | select county_name , population from county
### Instruction:

Convert text to sql: Show the average population of all counties. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select avg ( _ ) from _ | select avg ( population ) from county
### Instruction:

Convert text to sql: On average how large is the population of the counties? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select avg ( _ ) from _ | select avg ( population ) from county
### Instruction:

Convert text to sql: Return the maximum and minimum population among all counties. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select max ( _ ) , min ( _ ) from _ | select max ( population ) , min ( population ) from county
### Instruction:

Convert text to sql: What are the maximum and minimum population of the counties? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select max ( _ ) , min ( _ ) from _ | select max ( population ) , min ( population ) from county
### Instruction:

Convert text to sql: Show all the distinct districts for elections. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select distinct _ from _ | select distinct district from election
### Instruction:

Convert text to sql: What are the distinct districts for elections? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select distinct _ from _ | select distinct district from election
### Instruction:

Convert text to sql: Show the zip code of the county with name "Howard". | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select zip_code from county where county_name = 'Howard'
### Instruction:

Convert text to sql: What is the zip code the county named "Howard" is located in? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select zip_code from county where county_name = 'Howard'
### Instruction:

Convert text to sql: Show the delegate from district 1 in election. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select delegate from election where district = 1
### Instruction:

Convert text to sql: Who is the delegate of district 1 in the elections? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select delegate from election where district = 1
### Instruction:

Convert text to sql: Show the delegate and committee information of elections. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ | select delegate , committee from election
### Instruction:

Convert text to sql: What are the delegate and committee information for each election record? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ | select delegate , committee from election
### Instruction:

Convert text to sql: How many distinct governors are there? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct governor ) from party
### Instruction:

Convert text to sql: Count the number of distinct governors. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct governor ) from party
### Instruction:

Convert text to sql: Show the lieutenant governor and comptroller from the democratic party. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select lieutenant_governor , comptroller from party where party = 'Democratic'
### Instruction:

Convert text to sql: Who are the lieutenant governor and comptroller from the democratic party? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ where _ | select lieutenant_governor , comptroller from party where party = 'Democratic'
### Instruction:

Convert text to sql: In which distinct years was the governor "Eliot Spitzer"? | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select distinct _ from _ where _ | select distinct year from party where governor = 'Eliot Spitzer'
### Instruction:

Convert text to sql: Find the distinct years when the governor was named "Eliot Spitzer". | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select distinct _ from _ where _ | select distinct year from party where governor = 'Eliot Spitzer'
### Instruction:

Convert text to sql: Show all the information about election. | county : county_id , county_name , population , zip_code | party : party_id , year , party , governor , lieutenant_governor , comptroller , attorney_general , us_senate | election : election_id , counties_represented , district , delegate , party , first_elected , committee | election.district = county.county_id | election.party = party.party_id | 

### Response:

select _ from _ | select * from election