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

Convert text to sql: Find the id of the candidate who got the lowest oppose rate. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc limit _ | select candidate_id from candidate order by oppose_rate asc limit 1
### Instruction:

Convert text to sql: What is the id of the candidate with the lowest oppose rate? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc limit _ | select candidate_id from candidate order by oppose_rate asc limit 1
### Instruction:

Convert text to sql: Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select support_rate , consider_rate , oppose_rate from candidate order by unsure_rate asc
### Instruction:

Convert text to sql: What are the support, consider, and oppose rates of each candidate, ordered ascending by their unsure rate? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select support_rate , consider_rate , oppose_rate from candidate order by unsure_rate asc
### Instruction:

Convert text to sql: which poll source does the highest oppose rate come from? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select poll_source from candidate order by oppose_rate desc limit 1
### Instruction:

Convert text to sql: Return the poll source corresponding to the candidate who has the oppose rate. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select poll_source from candidate order by oppose_rate desc limit 1
### Instruction:

Convert text to sql: List all people names in the order of their date of birth from old to young. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select name from people order by date_of_birth asc
### Instruction:

Convert text to sql: What are the names of all people, ordered by their date of birth? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select name from people order by date_of_birth asc
### Instruction:

Convert text to sql: Find the average height and weight for all males (sex is M). | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select avg ( _ ) , avg ( _ ) from _ where _ | select avg ( height ) , avg ( weight ) from people where sex = 'M'
### Instruction:

Convert text to sql: What are the average height and weight across males (sex is M)? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select avg ( _ ) , avg ( _ ) from _ where _ | select avg ( height ) , avg ( weight ) from people where sex = 'M'
### Instruction:

Convert text to sql: find the names of people who are taller than 200 or lower than 190. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ | select name from people where height > 200 or height < 190
### Instruction:

Convert text to sql: What are the names of people who have a height greater than 200 or less than 190? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ | select name from people where height > 200 or height < 190
### Instruction:

Convert text to sql: Find the average and minimum weight for each gender. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select avg ( _ ) , min ( _ ) , _ from _ group by _ | select avg ( weight ) , min ( weight ) , sex from people group by sex
### Instruction:

Convert text to sql: What are the average and minimum weights for people of each sex? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select avg ( _ ) , min ( _ ) , _ from _ group by _ | select avg ( weight ) , min ( weight ) , sex from people group by sex
### Instruction:

Convert text to sql: Find the name and gender of the candidate who got the highest support rate. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select people.name , people.sex from people join candidate on people.people_id = candidate.people_id order by candidate.support_rate desc limit 1
### Instruction:

Convert text to sql: What is the name and sex of the candidate with the highest support rate? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select people.name , people.sex from people join candidate on people.people_id = candidate.people_id order by candidate.support_rate desc limit 1
### Instruction:

Convert text to sql: Find the name of the candidates whose oppose percentage is the lowest for each sex. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ , min ( _ ) from _ group by _ | select people.name , people.sex , min ( oppose_rate ) from people join candidate on people.people_id = candidate.people_id group by people.sex
### Instruction:

Convert text to sql: For each sex, what is the name and sex of the candidate with the oppose rate for their sex? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ , min ( _ ) from _ group by _ | select people.name , people.sex , min ( oppose_rate ) from people join candidate on people.people_id = candidate.people_id group by people.sex
### Instruction:

Convert text to sql: which gender got the highest average uncertain ratio. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) desc limit _ | select people.sex from people join candidate on people.people_id = candidate.people_id group by people.sex order by avg ( candidate.unsure_rate ) desc limit 1
### Instruction:

Convert text to sql: What is the sex of the candidate who had the highest unsure rate? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) desc limit _ | select people.sex from people join candidate on people.people_id = candidate.people_id group by people.sex order by avg ( candidate.unsure_rate ) desc limit 1
### Instruction:

Convert text to sql: what are the names of people who did not participate in the candidate election. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from people where people_id not in ( select people_id from candidate )
### Instruction:

Convert text to sql: Give the names of people who did not participate in the candidate election. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from people where people_id not in ( select people_id from candidate )
### Instruction:

Convert text to sql: Find the names of the candidates whose support percentage is lower than their oppose rate. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from people join candidate on people.people_id = candidate.people_id where candidate.support_rate < candidate.oppose_rate
### Instruction:

Convert text to sql: What are the names of candidates who have a lower support rate than oppose rate? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from people join candidate on people.people_id = candidate.people_id where candidate.support_rate < candidate.oppose_rate
### Instruction:

Convert text to sql: how many people are there whose weight is higher than 85 for each gender? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select count ( _ ) , _ from _ where _ group by _ | select count ( * ) , sex from people where weight > 85 group by sex
### Instruction:

Convert text to sql: Count the number of people of each sex who have a weight higher than 85. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select count ( _ ) , _ from _ where _ group by _ | select count ( * ) , sex from people where weight > 85 group by sex
### Instruction:

Convert text to sql: find the highest support percentage, lowest consider rate and oppose rate of all candidates. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select max ( _ ) , min ( _ ) , min ( _ ) from _ | select max ( support_rate ) , min ( consider_rate ) , min ( oppose_rate ) from candidate
### Instruction:

Convert text to sql: Return the maximum support rate, minimum consider rate, and minimum oppose rate across all candidates? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select max ( _ ) , min ( _ ) , min ( _ ) from _ | select max ( support_rate ) , min ( consider_rate ) , min ( oppose_rate ) from candidate
### Instruction:

Convert text to sql: list all female (sex is F) candidate names in the alphabetical order. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ order by _ asc | select people.name from people join candidate on people.people_id = candidate.people_id where people.sex = 'F' order by people.name asc
### Instruction:

Convert text to sql: What are the names of all female candidates in alphabetical order (sex is F)? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ order by _ asc | select people.name from people join candidate on people.people_id = candidate.people_id where people.sex = 'F' order by people.name asc
### Instruction:

Convert text to sql: find the name of people whose height is lower than the average. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select name from people where height < ( select avg ( height ) from people )
### Instruction:

Convert text to sql: What are the names of people who are shorter than average? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select name from people where height < ( select avg ( height ) from people )
### Instruction:

Convert text to sql: List all info about all people. | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ | select * from people
### Instruction:

Convert text to sql: What is all the information about all people? | candidate : candidate_id , people_id , poll_source , date , support_rate , consider_rate , oppose_rate , unsure_rate | people : people_id , sex , name , date_of_birth , height , weight | candidate.people_id = people.people_id | 

### Response:

select _ from _ | select * from people
### Instruction:

Convert text to sql: Find the titles of all movies directed by steven spielberg. | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select title from movie where director = 'Steven Spielberg'
### Instruction:

Convert text to sql: What are the names of all movies directed by Steven Spielberg? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select title from movie where director = 'Steven Spielberg'
### Instruction:

Convert text to sql: What is the name of the movie produced after 2000 and directed by James Cameron? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select title from movie where director = 'James Cameron' and year > 2000
### Instruction:

Convert text to sql: What are the titles of all movies that James Cameron directed after 2000? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select title from movie where director = 'James Cameron' and year > 2000
### Instruction:

Convert text to sql: How many movies were made before 2000? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from movie where year < 2000
### Instruction:

Convert text to sql: Who is the director of movie Avatar? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select director from movie where title = 'Avatar'
### Instruction:

Convert text to sql: Who directed Avatar? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select director from movie where title = 'Avatar'
### Instruction:

Convert text to sql: How many reviewers listed? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

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

Convert text to sql: How many reviewers are there? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

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

Convert text to sql: What is the id of the reviewer whose name has substring 'Mike'? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ like _ | select rid from reviewer where name like '%Mike%'
### Instruction:

Convert text to sql: What is the id of the reviewer whose name includes the word "Mike"? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ like _ | select rid from reviewer where name like '%Mike%'
### Instruction:

Convert text to sql: What is the reviewer id of Daniel Lewis? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select rid from reviewer where name = 'Daniel Lewis'
### Instruction:

Convert text to sql: What is the id of the reviewer named Daniel Lewis? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select rid from reviewer where name = 'Daniel Lewis'
### Instruction:

Convert text to sql: What is the total number of ratings that has more than 3 stars? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from rating where stars > 3
### Instruction:

Convert text to sql: How many movie ratings have more than 3 stars? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from rating where stars > 3
### Instruction:

Convert text to sql: What is the lowest and highest rating star? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select max ( _ ) , min ( _ ) from _ | select max ( stars ) , min ( stars ) from rating
### Instruction:

Convert text to sql: What is the maximum and mininum number of stars a rating can receive? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select max ( _ ) , min ( _ ) from _ | select max ( stars ) , min ( stars ) from rating
### Instruction:

Convert text to sql: Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year. | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select distinct _ from _ where _ order by _ asc | select distinct year from movie join rating on movie.mid = rating.mid where rating.stars >= 4 order by movie.year asc
### Instruction:

Convert text to sql: In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently? | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select distinct _ from _ where _ order by _ asc | select distinct year from movie join rating on movie.mid = rating.mid where rating.stars >= 4 order by movie.year asc
### Instruction:

Convert text to sql: What are the names of directors who directed movies with 5 star rating? Also return the title of these movies. | movie : mid , title , year , director | reviewer : rid , name | rating : rid , mid , stars , ratingdate | rating.rid = reviewer.rid | rating.mid = movie.mid | 

### Response:

select _ from _ where _ | select movie.director , movie.title from movie join rating on movie.mid = rating.mid where rating.stars = 5