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

Convert text to sql: What are the log id and entry description of each problem? | 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
### Instruction:

Convert text to sql: List the first and last names of all distinct staff members who are assigned to the problem whose id is 1. | 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 distinct _ from _ where _ | select distinct staff_first_name , staff_last_name from staff join problem_log on staff.staff_id = problem_log.assigned_to_staff_id where problem_log.problem_id = 1
### Instruction:

Convert text to sql: Which staff members are assigned to the problem with id 1? Give me their first and last names. | 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 distinct _ from _ where _ | select distinct staff_first_name , staff_last_name from staff join problem_log on staff.staff_id = problem_log.assigned_to_staff_id where problem_log.problem_id = 1
### Instruction:

Convert text to sql: List the problem id and log id which are assigned to the staff named Rylan Homenick. | 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 distinct _ from _ where _ | select distinct problem_log.problem_id , problem_log.problem_log_id from staff join problem_log on staff.staff_id = problem_log.assigned_to_staff_id where staff.staff_first_name = 'Rylan' and staff.staff_last_name = 'Homenick'
### Instruction:

Convert text to sql: Which problem id and log id are assigned to the staff named Rylan Homenick? | 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 distinct _ from _ where _ | select distinct problem_log.problem_id , problem_log.problem_log_id from staff join problem_log on staff.staff_id = problem_log.assigned_to_staff_id where staff.staff_first_name = 'Rylan' and staff.staff_last_name = 'Homenick'
### Instruction:

Convert text to sql: How many problems are there for product voluptatem? | 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 count ( _ ) from _ where _ | select count ( * ) from product join problems on product.product_id = problems.product_id where product.product_name = 'voluptatem'
### Instruction:

Convert text to sql: How many problems did the product called "voluptatem" have in record? | 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 count ( _ ) from _ where _ | select count ( * ) from product join problems on product.product_id = problems.product_id where product.product_name = 'voluptatem'
### Instruction:

Convert text to sql: How many problems does the product with the most problems have? List the number of the problems and product name. | 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 count ( _ ) , _ from _ group by _ order by count ( _ ) desc limit _ | select count ( * ) , product.product_name from product join problems on product.product_id = problems.product_id group by product.product_name order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which product has the most problems? Give me the number of problems and the product name. | 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 count ( _ ) , _ from _ group by _ order by count ( _ ) desc limit _ | select count ( * ) , product.product_name from product join problems on product.product_id = problems.product_id group by product.product_name order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop. | 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 problems.problem_description from problems join staff on problems.reported_by_staff_id = staff.staff_id where staff.staff_first_name = 'Christop'
### Instruction:

Convert text to sql: Which problems are reported by the staff with first name "Christop"? Show the descriptions of the problems. | 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 problems.problem_description from problems join staff on problems.reported_by_staff_id = staff.staff_id where staff.staff_first_name = 'Christop'
### Instruction:

Convert text to sql: Find the ids of the problems that are reported by the staff whose last name is Bosco. | 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 problems.problem_id from problems join staff on problems.reported_by_staff_id = staff.staff_id where staff.staff_last_name = 'Bosco'
### Instruction:

Convert text to sql: Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems. | 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 problems.problem_id from problems join staff on problems.reported_by_staff_id = staff.staff_id where staff.staff_last_name = 'Bosco'
### Instruction:

Convert text to sql: What are the ids of the problems which are reported after 1978-06-26? | 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_id from problems where date_problem_reported > '1978-06-26'
### Instruction:

Convert text to sql: Find the ids of the problems reported after 1978-06-26. | 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_id from problems where date_problem_reported > '1978-06-26'
### Instruction:

Convert text to sql: What are the ids of the problems which are reported before 1978-06-26? | 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_id from problems where date_problem_reported < '1978-06-26'
### Instruction:

Convert text to sql: Which problems are reported before 1978-06-26? Give me the ids of the problems. | 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_id from problems where date_problem_reported < '1978-06-26'