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

Convert text to sql: Return all the 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 * from election
### Instruction:

Convert text to sql: Show the delegates and the names of county they belong to. | 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 election.delegate , county.county_name from county join election on county.county_id = election.district
### Instruction:

Convert text to sql: What are the delegate and name of the county they belong to, for 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 election.delegate , county.county_name from county join election on county.county_id = election.district
### Instruction:

Convert text to sql: Which delegates are from counties with population smaller than 100000? | 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 election.delegate from county join election on county.county_id = election.district where county.population < 100000
### Instruction:

Convert text to sql: Find the delegates who are from counties with population below 100000. | 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 election.delegate from county join election on county.county_id = election.district where county.population < 100000
### Instruction:

Convert text to sql: How many distinct delegates are from counties with population larger than 50000? | 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 _ where _ | select count ( distinct election.delegate ) from county join election on county.county_id = election.district where county.population > 50000
### Instruction:

Convert text to sql: Count the number of distinct delegates who are from counties with population above 50000. | 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 _ where _ | select count ( distinct election.delegate ) from county join election on county.county_id = election.district where county.population > 50000
### Instruction:

Convert text to sql: What are the names of the county that the delegates on "Appropriations" committee belong to? | 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 county.county_name from county join election on county.county_id = election.district where election.committee = 'Appropriations'
### Instruction:

Convert text to sql: Which county do the delegates on "Appropriations" committee belong to? Give me the county names. | 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 county.county_name from county join election on county.county_id = election.district where election.committee = 'Appropriations'
### Instruction:

Convert text to sql: Show the delegates and the names of the party they belong to. | 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 election.delegate , party.party from election join party on election.party = party.party_id
### Instruction:

Convert text to sql: For each delegate, find the names of the party they are part of. | 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 election.delegate , party.party from election join party on election.party = party.party_id
### Instruction:

Convert text to sql: Who were the governors of the parties associated with delegates from district 1? | 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 party.governor from election join party on election.party = party.party_id where election.district = 1
### Instruction:

Convert text to sql: Find the parties associated with the delegates from district 1. Who served as governors of the parties? | 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 party.governor from election join party on election.party = party.party_id where election.district = 1
### Instruction:

Convert text to sql: Who were the comptrollers of the parties associated with the delegates from district 1 or district 2? | 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 party.comptroller from election join party on election.party = party.party_id where election.district = 1 or election.district = 2
### Instruction:

Convert text to sql: Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties? | 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 party.comptroller from election join party on election.party = party.party_id where election.district = 1 or election.district = 2
### Instruction:

Convert text to sql: Return all the committees that have delegates from 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 election.committee from election join party on election.party = party.party_id where party.party = 'Democratic'
### Instruction:

Convert text to sql: Which committees have delegates 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 election.committee from election join party on election.party = party.party_id where party.party = 'Democratic'
### Instruction:

Convert text to sql: Show the name of each county along with the corresponding number of delegates from that 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 _ , count ( _ ) from _ group by _ | select county.county_name , count ( * ) from county join election on county.county_id = election.district group by county.county_id
### Instruction:

Convert text to sql: For each county, find the name of the county and the number of delegates from that 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 _ , count ( _ ) from _ group by _ | select county.county_name , count ( * ) from county join election on county.county_id = election.district group by county.county_id
### Instruction:

Convert text to sql: Show the name of each party and the corresponding number of delegates from that 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 _ , count ( _ ) from _ group by _ | select party.party , count ( * ) from election join party on election.party = party.party_id group by election.party
### Instruction:

Convert text to sql: For each party, return the name of the party and the number of delegates from that 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 _ , count ( _ ) from _ group by _ | select party.party , count ( * ) from election join party on election.party = party.party_id group by election.party
### Instruction:

Convert text to sql: Return the names of all counties sorted by population in ascending order. | 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 _ order by _ asc | select county_name from county order by population asc
### Instruction:

Convert text to sql: Sort the names of all counties in ascending order of population. | 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 _ order by _ asc | select county_name from county order by population asc
### Instruction:

Convert text to sql: Return the names of all counties sorted by county name in descending alphabetical order. | 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 _ order by _ desc | select county_name from county order by county_name desc
### Instruction:

Convert text to sql: Sort the names of all counties in descending alphabetical order. | 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 _ order by _ desc | select county_name from county order by county_name desc
### Instruction:

Convert text to sql: Show the name of the county with the biggest population. | 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 _ order by _ desc limit _ | select county_name from county order by population desc limit 1
### Instruction:

Convert text to sql: Which county has the largest population? Give me the name of the 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 _ order by _ desc limit _ | select county_name from county order by population desc limit 1
### Instruction:

Convert text to sql: Show the 3 counties with the smallest population. | 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 _ order by _ asc limit _ | select county_name from county order by population asc limit 3
### Instruction:

Convert text to sql: What are the 3 counties that have the smallest population? Give me the county names. | 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 _ order by _ asc limit _ | select county_name from county order by population asc limit 3
### Instruction:

Convert text to sql: Show the names of counties that have at least two delegates. | 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 _ group by _ having count ( _ ) >= _ | select county.county_name from county join election on county.county_id = election.district group by county.county_id having count ( * ) >= 2
### Instruction:

Convert text to sql: Which counties have two or more delegates? Give me the county names. | 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 _ group by _ having count ( _ ) >= _ | select county.county_name from county join election on county.county_id = election.district group by county.county_id having count ( * ) >= 2
### Instruction:

Convert text to sql: Show the name of the party that has at least two records. | 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 _ group by _ having count ( _ ) >= _ | select party from party group by party having count ( * ) >= 2
### Instruction:

Convert text to sql: Which party has two or more records? | 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 _ group by _ having count ( _ ) >= _ | select party from party group by party having count ( * ) >= 2
### Instruction:

Convert text to sql: Show the name of the party that has the most delegates. | 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 _ group by _ order by count ( _ ) desc limit _ | select party.party from election join party on election.party = party.party_id group by election.party order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which party has the largest number of delegates? | 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 _ group by _ order by count ( _ ) desc limit _ | select party.party from election join party on election.party = party.party_id group by election.party order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the people that have been governor the most times. | 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 _ group by _ order by count ( _ ) desc limit _ | select governor from party group by governor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which people severed as governor most frequently? | 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 _ group by _ order by count ( _ ) desc limit _ | select governor from party group by governor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the people that have been comptroller the most times and the corresponding number of times. | 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 _ group by _ order by count ( _ ) desc limit _ | select comptroller , count ( * ) from party group by comptroller order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which people severed as comptroller most frequently? Give me the name of the person and the frequency count. | 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 _ group by _ order by count ( _ ) desc limit _ | select comptroller , count ( * ) from party group by comptroller order by count ( * ) desc limit 1