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

Convert text to sql: What are the maximum and minimum sales of the companies whose industries are not "Banking". | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select max ( _ ) , min ( _ ) from _ where _ | select max ( sales_billion ) , min ( sales_billion ) from companies where industry != 'Banking'
### Instruction:

Convert text to sql: Find the maximum and minimum sales of the companies that are not in the "Banking" industry. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select max ( _ ) , min ( _ ) from _ where _ | select max ( sales_billion ) , min ( sales_billion ) from companies where industry != 'Banking'
### Instruction:

Convert text to sql: How many different industries are the companies in? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct industry ) from companies
### Instruction:

Convert text to sql: Count the number of distinct company industries. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct industry ) from companies
### Instruction:

Convert text to sql: List the names of buildings in descending order of building height. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ order by _ desc | select name from buildings order by height desc
### Instruction:

Convert text to sql: What are the names of buildings sorted in descending order of building height? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ order by _ desc | select name from buildings order by height desc
### Instruction:

Convert text to sql: Find the stories of the building with the largest height. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ order by _ desc limit _ | select stories from buildings order by height desc limit 1
### Instruction:

Convert text to sql: What is the stories of highest building? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ order by _ desc limit _ | select stories from buildings order by height desc limit 1
### Instruction:

Convert text to sql: List the name of a building along with the name of a company whose office is in the building. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ | select companies.name , buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id
### Instruction:

Convert text to sql: For each company, return the company name and the name of the building its office is located in. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ | select companies.name , buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id
### Instruction:

Convert text to sql: Show the names of the buildings that have more than one company offices. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id group by office_locations.building_id having count ( * ) > 1
### Instruction:

Convert text to sql: Which buildings have more than one company offices? Give me the building names. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id group by office_locations.building_id having count ( * ) > 1
### Instruction:

Convert text to sql: Show the name of the building that has the most company offices. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id group by office_locations.building_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which building has the largest number of company offices? Give me the building name. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select buildings.name from office_locations join buildings on office_locations.building_id = buildings.id join companies on office_locations.company_id = companies.id group by office_locations.building_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Please show the names of the buildings whose status is "on-hold", in ascending order of stories. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ order by _ asc | select name from buildings where status = 'on-hold' order by stories asc
### Instruction:

Convert text to sql: Find the names of the buildings in "on-hold" status, and sort them in ascending order of building stories. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ order by _ asc | select name from buildings where status = 'on-hold' order by stories asc
### Instruction:

Convert text to sql: Please show each industry and the corresponding number of companies in that industry. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ , count ( _ ) from _ group by _ | select industry , count ( * ) from companies group by industry
### Instruction:

Convert text to sql: Whah are the name of each industry and the number of companies in that industry? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ , count ( _ ) from _ group by _ | select industry , count ( * ) from companies group by industry
### Instruction:

Convert text to sql: Please show the industries of companies in descending order of the number of companies. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc | select industry from companies group by industry order by count ( * ) desc
### Instruction:

Convert text to sql: Sort all the industries in descending order of the count of companies in each industry | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc | select industry from companies group by industry order by count ( * ) desc
### Instruction:

Convert text to sql: List the industry shared by the most companies. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select industry from companies group by industry order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which industry has the most companies? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select industry from companies group by industry order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: List the names of buildings that have no company office. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from buildings where id not in ( select building_id from office_locations )
### Instruction:

Convert text to sql: Which buildings do not have any company office? Give me the building names. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from buildings where id not in ( select building_id from office_locations )
### Instruction:

Convert text to sql: Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select industry from companies where headquarters = 'USA' intersect select industry from companies where headquarters = 'China'
### Instruction:

Convert text to sql: Which industries have both companies with headquarter in "USA" and companies with headquarter in "China"? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select industry from companies where headquarters = 'USA' intersect select industry from companies where headquarters = 'China'
### Instruction:

Convert text to sql: Find the number of companies whose industry is "Banking" or "Conglomerate", | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from companies where industry = 'Banking' or industry = 'Conglomerate'
### Instruction:

Convert text to sql: How many companies are in either "Banking" industry or "Conglomerate" industry? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from companies where industry = 'Banking' or industry = 'Conglomerate'
### Instruction:

Convert text to sql: Show the headquarters shared by more than two companies. | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select headquarters from companies group by headquarters having count ( * ) > 2
### Instruction:

Convert text to sql: Which headquarter locations are used by more than 2 companies? | buildings : id , name , city , height , stories , status | companies : id , name , headquarters , industry , sales_billion , profits_billion , assets_billion , market_value_billion | office_locations : building_id , company_id , move_in_year | office_locations.company_id = companies.id | office_locations.building_id = buildings.id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select headquarters from companies group by headquarters having count ( * ) > 2
### Instruction:

Convert text to sql: How many products are there? | addresses : address_id , address_details | locations : location_id , other_details | products : product_id , product_type_code , product_name , product_price | parties : party_id , party_details | assets : asset_id , other_details | channels : channel_id , other_details | finances : finance_id , other_details | events : event_id , address_id , channel_id , event_type_code , finance_id , location_id | products_in_events : product_in_event_id , event_id , product_id | parties_in_events : party_id , event_id , role_code | agreements : document_id , event_id | assets_in_events : asset_id , event_id | events.finance_id = finances.finance_id | events.address_id = addresses.address_id | events.location_id = locations.location_id | products_in_events.product_id = products.product_id | products_in_events.event_id = events.event_id | parties_in_events.event_id = events.event_id | parties_in_events.party_id = parties.party_id | agreements.event_id = events.event_id | assets_in_events.event_id = events.event_id | assets_in_events.event_id = events.event_id | 

### Response:

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

Convert text to sql: List the name of products in ascending order of price. | addresses : address_id , address_details | locations : location_id , other_details | products : product_id , product_type_code , product_name , product_price | parties : party_id , party_details | assets : asset_id , other_details | channels : channel_id , other_details | finances : finance_id , other_details | events : event_id , address_id , channel_id , event_type_code , finance_id , location_id | products_in_events : product_in_event_id , event_id , product_id | parties_in_events : party_id , event_id , role_code | agreements : document_id , event_id | assets_in_events : asset_id , event_id | events.finance_id = finances.finance_id | events.address_id = addresses.address_id | events.location_id = locations.location_id | products_in_events.product_id = products.product_id | products_in_events.event_id = events.event_id | parties_in_events.event_id = events.event_id | parties_in_events.party_id = parties.party_id | agreements.event_id = events.event_id | assets_in_events.event_id = events.event_id | assets_in_events.event_id = events.event_id | 

### Response:

select _ from _ order by _ asc | select product_name from products order by product_price asc
### Instruction:

Convert text to sql: What are the names and type codes of products? | addresses : address_id , address_details | locations : location_id , other_details | products : product_id , product_type_code , product_name , product_price | parties : party_id , party_details | assets : asset_id , other_details | channels : channel_id , other_details | finances : finance_id , other_details | events : event_id , address_id , channel_id , event_type_code , finance_id , location_id | products_in_events : product_in_event_id , event_id , product_id | parties_in_events : party_id , event_id , role_code | agreements : document_id , event_id | assets_in_events : asset_id , event_id | events.finance_id = finances.finance_id | events.address_id = addresses.address_id | events.location_id = locations.location_id | products_in_events.product_id = products.product_id | products_in_events.event_id = events.event_id | parties_in_events.event_id = events.event_id | parties_in_events.party_id = parties.party_id | agreements.event_id = events.event_id | assets_in_events.event_id = events.event_id | assets_in_events.event_id = events.event_id | 

### Response:

select _ from _ | select product_name , product_type_code from products
### Instruction:

Convert text to sql: Show the prices of the products named "Dining" or "Trading Policy". | addresses : address_id , address_details | locations : location_id , other_details | products : product_id , product_type_code , product_name , product_price | parties : party_id , party_details | assets : asset_id , other_details | channels : channel_id , other_details | finances : finance_id , other_details | events : event_id , address_id , channel_id , event_type_code , finance_id , location_id | products_in_events : product_in_event_id , event_id , product_id | parties_in_events : party_id , event_id , role_code | agreements : document_id , event_id | assets_in_events : asset_id , event_id | events.finance_id = finances.finance_id | events.address_id = addresses.address_id | events.location_id = locations.location_id | products_in_events.product_id = products.product_id | products_in_events.event_id = events.event_id | parties_in_events.event_id = events.event_id | parties_in_events.party_id = parties.party_id | agreements.event_id = events.event_id | assets_in_events.event_id = events.event_id | assets_in_events.event_id = events.event_id | 

### Response:

select _ from _ where _ | select product_price from products where product_name = 'Dining' or product_name = 'Trading Policy'