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

Convert text to sql: find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. | company : company_id , rank , company , headquarters , main_industry , sales_billion , profits_billion , assets_billion , market_value | gas_station : station_id , open_year , location , manager_name , vice_manager_name , representative_name | station_company : station_id , company_id , rank_of_the_year | station_company.company_id = company.company_id | station_company.station_id = gas_station.station_id | 

### Response:

select _ from _ where _ order by _ asc , _ | select rank , company , market_value from company where main_industry = 'Banking' order by sales_billion asc , profits_billion
### Instruction:

Convert text to sql: What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits? | company : company_id , rank , company , headquarters , main_industry , sales_billion , profits_billion , assets_billion , market_value | gas_station : station_id , open_year , location , manager_name , vice_manager_name , representative_name | station_company : station_id , company_id , rank_of_the_year | station_company.company_id = company.company_id | station_company.station_id = gas_station.station_id | 

### Response:

select _ from _ where _ order by _ asc , _ | select rank , company , market_value from company where main_industry = 'Banking' order by sales_billion asc , profits_billion
### Instruction:

Convert text to sql: find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts. | company : company_id , rank , company , headquarters , main_industry , sales_billion , profits_billion , assets_billion , market_value | gas_station : station_id , open_year , location , manager_name , vice_manager_name , representative_name | station_company : station_id , company_id , rank_of_the_year | station_company.company_id = company.company_id | station_company.station_id = gas_station.station_id | 

### Response:

select _ from _ order by _ desc limit _ | select gas_station.location , gas_station.representative_name from station_company join company on station_company.company_id = company.company_id join gas_station on station_company.station_id = gas_station.station_id order by company.assets_billion desc limit 3
### Instruction:

Convert text to sql: What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets? | company : company_id , rank , company , headquarters , main_industry , sales_billion , profits_billion , assets_billion , market_value | gas_station : station_id , open_year , location , manager_name , vice_manager_name , representative_name | station_company : station_id , company_id , rank_of_the_year | station_company.company_id = company.company_id | station_company.station_id = gas_station.station_id | 

### Response:

select _ from _ order by _ desc limit _ | select gas_station.location , gas_station.representative_name from station_company join company on station_company.company_id = company.company_id join gas_station on station_company.station_id = gas_station.station_id order by company.assets_billion desc limit 3
### Instruction:

Convert text to sql: How many regions do we have? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

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

Convert text to sql: Count the number of regions. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

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

Convert text to sql: Show all distinct region names ordered by their labels. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select distinct _ from _ order by _ asc | select distinct region_name from region order by label asc
### Instruction:

Convert text to sql: What are the different region names, ordered by labels? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select distinct _ from _ order by _ asc | select distinct region_name from region order by label asc
### Instruction:

Convert text to sql: How many parties do we have? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

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

Convert text to sql: Count the number of different parties. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

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

Convert text to sql: Show the ministers and the time they took and left office, listed by the time they left office. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ asc | select minister , took_office , left_office from party order by left_office asc
### Instruction:

Convert text to sql: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ asc | select minister , took_office , left_office from party order by left_office asc
### Instruction:

Convert text to sql: Show the minister who took office after 1961 or before 1959. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select minister from party where took_office > 1961 or took_office < 1959
### Instruction:

Convert text to sql: Who are the ministers who took office after 1961 or before 1959? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select minister from party where took_office > 1961 or took_office < 1959
### Instruction:

Convert text to sql: Show all ministers who do not belong to Progress Party. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select minister from party where party_name != 'Progress Party'
### Instruction:

Convert text to sql: Which ministers are not a part of the Progress Party? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select minister from party where party_name != 'Progress Party'
### Instruction:

Convert text to sql: Show all ministers and parties they belong to in descending order of the time they took office. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ desc | select minister , party_name from party order by took_office desc
### Instruction:

Convert text to sql: Who are the ministers and what parties do they belong to, listed descending by the times they took office? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ desc | select minister , party_name from party order by took_office desc
### Instruction:

Convert text to sql: Return the minister who left office at the latest time. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ desc limit _ | select minister from party order by left_office desc limit 1
### Instruction:

Convert text to sql: Which minister left office the latest? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ order by _ desc limit _ | select minister from party order by left_office desc limit 1
### Instruction:

Convert text to sql: List member names and their party names. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ | select member.member_name , party.party_name from member join party on member.party_id = party.party_id
### Instruction:

Convert text to sql: What are the names of members and their corresponding parties? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ | select member.member_name , party.party_name from member join party on member.party_id = party.party_id
### Instruction:

Convert text to sql: Show all party names and the number of members in each party. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select party.party_name , count ( * ) from member join party on member.party_id = party.party_id group by member.party_id
### Instruction:

Convert text to sql: How many members are in each party? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select party.party_name , count ( * ) from member join party on member.party_id = party.party_id group by member.party_id
### Instruction:

Convert text to sql: What is the name of party with most number of members? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select party.party_name from member join party on member.party_id = party.party_id group by member.party_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Return the name of the party with the most members. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select party.party_name from member join party on member.party_id = party.party_id group by member.party_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show all party names and their region names. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ | select party.party_name , region.region_name from party join region on party.region_id = region.region_id
### Instruction:

Convert text to sql: What are the names of parties and their respective regions? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ | select party.party_name , region.region_name from party join region on party.region_id = region.region_id
### Instruction:

Convert text to sql: Show names of parties that does not have any members. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select party_name from party where party_id not in ( select party_id from member )
### Instruction:

Convert text to sql: What are the names of parties that have no members? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select party_name from party where party_id not in ( select party_id from member )
### Instruction:

Convert text to sql: Show the member names which are in both the party with id 3 and the party with id 1. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select member_name from member where party_id = 3 intersect select member_name from member where party_id = 1
### Instruction:

Convert text to sql: Which member names are shared among members in the party with the id 3 and the party with the id 1? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select member_name from member where party_id = 3 intersect select member_name from member where party_id = 1
### Instruction:

Convert text to sql: Show member names that are not in the Progress Party. | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select member.member_name from member join party on member.party_id = party.party_id where party.party_name != 'Progress Party'
### Instruction:

Convert text to sql: Which member names corresponding to members who are not in the Progress Party? | region : region_id , region_name , date , label , format , catalogue | party : party_id , minister , took_office , left_office , region_id , party_name | member : member_id , member_name , party_id , in_office | party_events : event_id , event_name , party_id , member_in_charge_id | party.region_id = region.region_id | member.party_id = party.party_id | party_events.member_in_charge_id = member.member_id | party_events.party_id = party.party_id | 

### Response:

select _ from _ where _ | select member.member_name from member join party on member.party_id = party.party_id where party.party_name != 'Progress Party'