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

Convert text to sql: Find number of products which Sony does not make. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( distinct _ ) from _ where _ not in ( select _ from _ where _ ) | select count ( distinct name ) from products where name not in ( select products.name from products join manufacturers on products.manufacturer = manufacturers.code where manufacturers.name = 'Sony' )
### Instruction:

Convert text to sql: How many products are not made by Sony? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( distinct _ ) from _ where _ not in ( select _ from _ where _ ) | select count ( distinct name ) from products where name not in ( select products.name from products join manufacturers on products.manufacturer = manufacturers.code where manufacturers.name = 'Sony' )
### Instruction:

Convert text to sql: Find the name of companies that do not make DVD drive. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ except select _ from _ where _ | select name from manufacturers except select manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code where products.name = 'DVD drive'
### Instruction:

Convert text to sql: What are the names of companies that do not make DVD drives? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ except select _ from _ where _ | select name from manufacturers except select manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code where products.name = 'DVD drive'
### Instruction:

Convert text to sql: Find the number of products for each manufacturer, showing the name of each company. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: How many products are there for each manufacturer? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( _ ) , _ from _ group by _ | select count ( * ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: Select the names of all the products in the store. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select name from products
### Instruction:

Convert text to sql: What are the names of all products? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select name from products
### Instruction:

Convert text to sql: Select the names and the prices of all the products in the store. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select name , price from products
### Instruction:

Convert text to sql: What are the names and prices of all products in the store? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select name , price from products
### Instruction:

Convert text to sql: Select the name of the products with a price less than or equal to $200. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ | select name from products where price <= 200
### Instruction:

Convert text to sql: What are the names of products with price at most 200? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ | select name from products where price <= 200
### Instruction:

Convert text to sql: Find all information of all the products with a price between $60 and $120. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ between _ and _ | select * from products where price between 60 and 120
### Instruction:

Convert text to sql: What is all the information of all the products that have a price between 60 and 120? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ between _ and _ | select * from products where price between 60 and 120
### Instruction:

Convert text to sql: Compute the average price of all the products. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) from _ | select avg ( price ) from products
### Instruction:

Convert text to sql: What is the average price across all products? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) from _ | select avg ( price ) from products
### Instruction:

Convert text to sql: Compute the average price of all products with manufacturer code equal to 2. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) from _ where _ | select avg ( price ) from products where manufacturer = 2
### Instruction:

Convert text to sql: What is the average price of products with manufacturer codes equal to 2? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) from _ where _ | select avg ( price ) from products where manufacturer = 2
### Instruction:

Convert text to sql: Compute the number of products with a price larger than or equal to $180. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from products where price >= 180
### Instruction:

Convert text to sql: How many products have prices of at least 180? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from products where price >= 180
### Instruction:

Convert text to sql: Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name  (in ascending order). | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ order by _ desc , _ asc | select name , price from products where price >= 180 order by price desc , name asc
### Instruction:

Convert text to sql: What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ where _ order by _ desc , _ asc | select name , price from products where price >= 180 order by price desc , name asc
### Instruction:

Convert text to sql: Select all the data from the products and each product's manufacturer. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select * from products join manufacturers on products.manufacturer = manufacturers.code
### Instruction:

Convert text to sql: What is all the product data, as well as  each product's manufacturer? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ | select * from products join manufacturers on products.manufacturer = manufacturers.code
### Instruction:

Convert text to sql: Select the average price of each manufacturer's products, showing only the manufacturer's code. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( price ) , manufacturer from products group by manufacturer
### Instruction:

Convert text to sql: What are the average prices of products, grouped by manufacturer code? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( price ) , manufacturer from products group by manufacturer
### Instruction:

Convert text to sql: Select the average price of each manufacturer's products, showing the manufacturer's name. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: What are the average prices of products, grouped by manufacturer name? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ | select avg ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: Select the names of manufacturer whose products have an average price higher than or equal to $150. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ having avg ( _ ) >= _ | select avg ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name having avg ( products.price ) >= 150
### Instruction:

Convert text to sql: What are the names and average prices of products for manufacturers whose products cost on average 150 or more? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select avg ( _ ) , _ from _ group by _ having avg ( _ ) >= _ | select avg ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name having avg ( products.price ) >= 150
### Instruction:

Convert text to sql: Select the name and price of the cheapest product. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ order by _ asc limit _ | select name , price from products order by price asc limit 1
### Instruction:

Convert text to sql: What is the name and price of the cheapest product? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ from _ order by _ asc limit _ | select name , price from products order by price asc limit 1
### Instruction:

Convert text to sql: Select the name of each manufacturer along with the name and price of its most expensive product. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ , max ( _ ) , _ from _ group by _ | select products.name , max ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: For each manufacturer name, what are the names and prices of their most expensive product? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ , max ( _ ) , _ from _ group by _ | select products.name , max ( products.price ) , manufacturers.name from products join manufacturers on products.manufacturer = manufacturers.code group by manufacturers.name
### Instruction:

Convert text to sql: Select the code of the product that is cheapest in each product category. | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ , min ( _ ) from _ group by _ | select code , name , min ( price ) from products group by name
### Instruction:

Convert text to sql: What are the codes and names of the cheapest products in each category? | manufacturers : code , name , headquarter , founder , revenue | products : code , name , price , manufacturer | products.manufacturer = manufacturers.code | 

### Response:

select _ , min ( _ ) from _ group by _ | select code , name , min ( price ) from products group by name
### Instruction:

Convert text to sql: What is the id of the problem log that is created most recently? | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ order by _ desc limit _ | select problem_log_id from problem_log order by log_entry_date desc limit 1
### Instruction:

Convert text to sql: Which problem log was created most recently? Give me the log id. | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ order by _ desc limit _ | select problem_log_id from problem_log order by log_entry_date desc limit 1
### Instruction:

Convert text to sql: What is the oldest log id and its corresponding problem id? | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ order by _ asc limit _ | select problem_log_id , problem_id from problem_log order by log_entry_date asc limit 1
### Instruction:

Convert text to sql: Find the oldest log id and its corresponding problem id. | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ order by _ asc limit _ | select problem_log_id , problem_id from problem_log order by log_entry_date asc limit 1
### Instruction:

Convert text to sql: Find all the ids and dates of the logs for the problem whose id is 10. | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ where _ | select problem_log_id , log_entry_date from problem_log where problem_id = 10
### Instruction:

Convert text to sql: For the problem with id 10, return the ids and dates of its problem logs. | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ where _ | select problem_log_id , log_entry_date from problem_log where problem_id = 10
### Instruction:

Convert text to sql: List all the log ids and their descriptions from the problem logs. | problem_category_codes : problem_category_code , problem_category_description | problem_log : problem_log_id , assigned_to_staff_id , problem_id , problem_category_code , problem_status_code , log_entry_date , log_entry_description , log_entry_fix , other_log_details | problem_status_codes : problem_status_code , problem_status_description | product : product_id , product_name , product_details | staff : staff_id , staff_first_name , staff_last_name , other_staff_details | problems : problem_id , product_id , closure_authorised_by_staff_id , reported_by_staff_id , date_problem_reported , date_problem_closed , problem_description , other_problem_details | problem_log.problem_status_code = problem_status_codes.problem_status_code | problem_log.problem_id = problems.problem_id | problem_log.assigned_to_staff_id = staff.staff_id | problem_log.problem_category_code = problem_category_codes.problem_category_code | problems.reported_by_staff_id = staff.staff_id | problems.product_id = product.product_id | problems.closure_authorised_by_staff_id = staff.staff_id | 

### Response:

select _ from _ | select problem_log_id , log_entry_description from problem_log