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

Convert text to sql: Find the names of goods that receive a rating of 10. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ | select item.title from item join review on item.i_id = review.i_id where review.rating = 10
### Instruction:

Convert text to sql: Find the titles of items whose rating is higher than the average review rating of all items. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select item.title from item join review on item.i_id = review.i_id where review.rating > ( select avg ( rating ) from review )
### Instruction:

Convert text to sql: Find the titles of items that received any rating below 5. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ | select item.title from item join review on item.i_id = review.i_id where review.rating < 5
### Instruction:

Convert text to sql: Find the titles of items that received both a rating higher than 8 and a rating below 5. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select item.title from item join review on item.i_id = review.i_id where review.rating > 8 intersect select item.title from item join review on item.i_id = review.i_id where review.rating < 5
### Instruction:

Convert text to sql: Find the names of items whose rank is higher than 3 and whose average rating is above 5. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ intersect select _ from _ group by _ having avg ( _ ) > _ | select item.title from item join review on item.i_id = review.i_id where review.rank > 3 intersect select item.title from item join review on item.i_id = review.i_id group by review.i_id having avg ( review.rating ) > 5
### Instruction:

Convert text to sql: Find the name of the item with the lowest average rating. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) asc limit _ | select item.title from item join review on item.i_id = review.i_id group by review.i_id order by avg ( review.rating ) asc limit 1
### Instruction:

Convert text to sql: List the titles of all items in alphabetic order . | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ order by _ asc | select title from item order by title asc
### Instruction:

Convert text to sql: Find the name of the user who gives the most reviews. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select useracct.name from useracct join review on useracct.u_id = review.u_id group by review.u_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the name and id of the item with the highest average rating. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) desc limit _ | select item.title , item.i_id from item join review on item.i_id = review.i_id group by review.i_id order by avg ( review.rating ) desc limit 1
### Instruction:

Convert text to sql: Find the name and id of the good with the highest average rank. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) desc limit _ | select item.title , item.i_id from item join review on item.i_id = review.i_id group by review.i_id order by avg ( review.rank ) desc limit 1
### Instruction:

Convert text to sql: For each user, return the name and the average rating of reviews given by them. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ , avg ( _ ) from _ group by _ | select useracct.name , avg ( review.rating ) from useracct join review on useracct.u_id = review.u_id group by review.u_id
### Instruction:

Convert text to sql: For each user, find their name and the number of reviews written by them. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select useracct.name , count ( * ) from useracct join review on useracct.u_id = review.u_id group by review.u_id
### Instruction:

Convert text to sql: Find the name of the user who gave the highest rating. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ order by _ desc limit _ | select useracct.name from useracct join review on useracct.u_id = review.u_id order by review.rating desc limit 1
### Instruction:

Convert text to sql: Find the name of the source user with the highest average trust score. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ group by _ order by avg ( _ ) desc limit _ | select useracct.name from useracct join trust on useracct.u_id = trust.source_u_id group by trust.source_u_id order by avg ( trust ) desc limit 1
### Instruction:

Convert text to sql: Find each target user's name and average trust score. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ , avg ( _ ) from _ group by _ | select useracct.name , avg ( trust ) from useracct join trust on useracct.u_id = trust.target_u_id group by trust.target_u_id
### Instruction:

Convert text to sql: Find the name of the target user with the lowest trust score. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ order by _ asc limit _ | select useracct.name from useracct join trust on useracct.u_id = trust.target_u_id order by trust asc limit 1
### Instruction:

Convert text to sql: Find the names of the items that did not receive any review. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select title from item where i_id not in ( select i_id from review )
### Instruction:

Convert text to sql: Find the number of users who did not write any review. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from useracct where u_id not in ( select u_id from review )
### Instruction:

Convert text to sql: Find the number of items without any review. | item : i_id , title | review : a_id , u_id , i_id , rating , rank | useracct : u_id , name | trust : source_u_id , target_u_id , trust | review.i_id = item.i_id | review.u_id = useracct.u_id | trust.target_u_id = useracct.u_id | trust.source_u_id = useracct.u_id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from item where i_id not in ( select i_id from review )
### Instruction:

Convert text to sql: How many players are there? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

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

Convert text to sql: List the names of players in ascending order of votes. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ order by _ asc | select player_name from player order by votes asc
### Instruction:

Convert text to sql: What are the gender and occupation of players? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ | select gender , occupation from player
### Instruction:

Convert text to sql: List the name and residence for players whose occupation is not "Researcher". | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ | select player_name , residence from player where occupation != 'Researcher'
### Instruction:

Convert text to sql: Show the names of sponsors of players whose residence is either "Brandon" or "Birtle". | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ | select sponsor_name from player where residence = 'Brandon' or residence = 'Birtle'
### Instruction:

Convert text to sql: What is the name of the player with the largest number of votes? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ order by _ desc limit _ | select player_name from player order by votes desc limit 1
### Instruction:

Convert text to sql: Show different occupations along with the number of players in each occupation. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select occupation , count ( * ) from player group by occupation
### Instruction:

Convert text to sql: Please show the most common occupation of players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

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

Convert text to sql: Show the residences that have at least two players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select residence from player group by residence having count ( * ) >= 2
### Instruction:

Convert text to sql: Show the names of players and names of their coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ | select player.player_name , coach.coach_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id
### Instruction:

Convert text to sql: Show the names of players coached by the rank 1 coach. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ | select player.player_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id where coach.rank = 1
### Instruction:

Convert text to sql: Show the names and genders of players with a coach starting after 2011. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ | select player.player_name , player.gender from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id where player_coach.starting_year > 2011
### Instruction:

Convert text to sql: Show the names of players and names of their coaches in descending order of the votes of players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ order by _ desc | select player.player_name , coach.coach_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id order by player.votes desc
### Instruction:

Convert text to sql: List the names of players that do not have coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select player_name from player where player_id not in ( select player_id from player_coach )
### Instruction:

Convert text to sql: Show the residences that have both a player of gender "M" and a player of gender "F". | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select residence from player where gender = 'M' intersect select residence from player where gender = 'F'
### Instruction:

Convert text to sql: How many coaches does each club has? List the club id, name and the number of coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select club.club_id , club.club_name , count ( * ) from club join coach on club.club_id = coach.club_id group by club.club_id
### Instruction:

Convert text to sql: How many gold medals has the club with the most coaches won? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select match_result.club_id , match_result.gold from match_result join coach on match_result.club_id = coach.club_id group by match_result.club_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: How many gymnasts are there? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select count ( _ ) from _ | select count ( * ) from gymnast