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

Convert text to sql: What are the names and year of joining for artists that do not have the country "United States"? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ | select name , year_join from artist where country != 'United States'
### Instruction:

Convert text to sql: How many artists are above age 46 and joined after 1990? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from artist where age > 46 and year_join > 1990
### Instruction:

Convert text to sql: Count the number of artists who are older than 46 and joined after 1990. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from artist where age > 46 and year_join > 1990
### Instruction:

Convert text to sql: What is the average and minimum age of all artists from United States. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select avg ( _ ) , min ( _ ) from _ where _ | select avg ( age ) , min ( age ) from artist where country = 'United States'
### Instruction:

Convert text to sql: Return the average and minimum ages across artists from the United States. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select avg ( _ ) , min ( _ ) from _ where _ | select avg ( age ) , min ( age ) from artist where country = 'United States'
### Instruction:

Convert text to sql: What is the name of the artist who joined latest? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ order by _ desc limit _ | select name from artist order by year_join desc limit 1
### Instruction:

Convert text to sql: Return the name of the artist who has the latest join year. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ order by _ desc limit _ | select name from artist order by year_join desc limit 1
### Instruction:

Convert text to sql: How many exhibition are there in year 2005 or after? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from exhibition where year >= 2005
### Instruction:

Convert text to sql: Count the number of exhibitions that happened in or after 2005. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from exhibition where year >= 2005
### Instruction:

Convert text to sql: Show theme and year for all exhibitions with ticket prices lower than 15. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ | select theme , year from exhibition where ticket_price < 15
### Instruction:

Convert text to sql: What are the theme and year for all exhibitions that have a ticket price under 15? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ | select theme , year from exhibition where ticket_price < 15
### Instruction:

Convert text to sql: Show all artist names and the number of exhibitions for each artist. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select artist.name , count ( * ) from exhibition join artist on exhibition.artist_id = artist.artist_id group by exhibition.artist_id
### Instruction:

Convert text to sql: How many exhibitions has each artist had? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select artist.name , count ( * ) from exhibition join artist on exhibition.artist_id = artist.artist_id group by exhibition.artist_id
### Instruction:

Convert text to sql: What is the name and country for the artist with most number of exhibitions? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select artist.name , artist.country from exhibition join artist on exhibition.artist_id = artist.artist_id group by exhibition.artist_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Return the name and country corresponding to the artist who has had the most exhibitions. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select artist.name , artist.country from exhibition join artist on exhibition.artist_id = artist.artist_id group by exhibition.artist_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show names for artists without any exhibition. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from artist where artist_id not in ( select artist_id from exhibition )
### Instruction:

Convert text to sql: What are the names of artists that have not had any exhibitions? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from artist where artist_id not in ( select artist_id from exhibition )
### Instruction:

Convert text to sql: What is the theme and artist name for the exhibition with a ticket price higher than the average? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select exhibition.theme , artist.name from exhibition join artist on exhibition.artist_id = artist.artist_id where exhibition.ticket_price > ( select avg ( ticket_price ) from exhibition )
### Instruction:

Convert text to sql: Return the names of artists and the themes of their exhibitions that had a ticket price higher than average. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select exhibition.theme , artist.name from exhibition join artist on exhibition.artist_id = artist.artist_id where exhibition.ticket_price > ( select avg ( ticket_price ) from exhibition )
### Instruction:

Convert text to sql: Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select avg ( _ ) , min ( _ ) , max ( _ ) from _ where _ | select avg ( ticket_price ) , min ( ticket_price ) , max ( ticket_price ) from exhibition where year < 2009
### Instruction:

Convert text to sql: What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select avg ( _ ) , min ( _ ) , max ( _ ) from _ where _ | select avg ( ticket_price ) , min ( ticket_price ) , max ( ticket_price ) from exhibition where year < 2009
### Instruction:

Convert text to sql: Show theme and year for all exhibitions in an descending order of ticket price. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ order by _ desc | select theme , year from exhibition order by ticket_price desc
### Instruction:

Convert text to sql: What are the themes and years for exhibitions, sorted by ticket price descending? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ order by _ desc | select theme , year from exhibition order by ticket_price desc
### Instruction:

Convert text to sql: What is the theme, date, and attendance for the exhibition in year 2004? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ | select exhibition.theme , exhibition_record.date , exhibition_record.attendance from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition.year = 2004
### Instruction:

Convert text to sql: Return the themes, dates, and attendance for exhibitions that happened in 2004. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ | select exhibition.theme , exhibition_record.date , exhibition_record.attendance from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition.year = 2004
### Instruction:

Convert text to sql: Show all artist names who didn't have an exhibition in 2004. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ except select _ from _ where _ | select name from artist except select artist.name from exhibition join artist on exhibition.artist_id = artist.artist_id where exhibition.year = 2004
### Instruction:

Convert text to sql: What are the names of artists who did not have an exhibition in 2004? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ except select _ from _ where _ | select name from artist except select artist.name from exhibition join artist on exhibition.artist_id = artist.artist_id where exhibition.year = 2004
### Instruction:

Convert text to sql: Show the theme for exhibitions with both records of an attendance below 100 and above 500. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select exhibition.theme from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance < 100 intersect select exhibition.theme from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance > 500
### Instruction:

Convert text to sql: Which themes have had corresponding exhibitions that have had attendance both below 100 and above 500? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select exhibition.theme from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance < 100 intersect select exhibition.theme from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance > 500
### Instruction:

Convert text to sql: How many exhibitions have a attendance more than 100 or have a ticket price below 10? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance > 100 or exhibition.ticket_price < 10
### Instruction:

Convert text to sql: Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id where exhibition_record.attendance > 100 or exhibition.ticket_price < 10
### Instruction:

Convert text to sql: Show all artist names with an average exhibition attendance over 200. | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ group by _ having avg ( _ ) > _ | select artist.name from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id join artist on artist.artist_id = exhibition.artist_id group by artist.artist_id having avg ( exhibition_record.attendance ) > 200
### Instruction:

Convert text to sql: What are the names of artist whose exhibitions draw over 200 attendees on average? | artist : artist_id , name , country , year_join , age | exhibition : exhibition_id , year , theme , artist_id , ticket_price | exhibition_record : exhibition_id , date , attendance | exhibition.artist_id = artist.artist_id | exhibition_record.exhibition_id = exhibition.exhibition_id | 

### Response:

select _ from _ group by _ having avg ( _ ) > _ | select artist.name from exhibition_record join exhibition on exhibition_record.exhibition_id = exhibition.exhibition_id join artist on artist.artist_id = exhibition.artist_id group by artist.artist_id having avg ( exhibition_record.attendance ) > 200
### Instruction:

Convert text to sql: Find the id of the item whose title is "orange". | 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 i_id from item where title = 'orange'
### Instruction:

Convert text to sql: List all information in the item table. | 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 _ | select * from item
### Instruction:

Convert text to sql: Find the number of 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 count ( _ ) from _ | select count ( * ) from review
### Instruction:

Convert text to sql: How many users are there? | 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 _ | select count ( * ) from useracct
### Instruction:

Convert text to sql: Find the average and maximum rating of all 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 avg ( _ ) , max ( _ ) from _ | select avg ( rating ) , max ( rating ) from review
### Instruction:

Convert text to sql: Find the highest rank of all 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 min ( _ ) from _ | select min ( rank ) from review
### Instruction:

Convert text to sql: How many different users wrote some 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 count ( distinct _ ) from _ | select count ( distinct u_id ) from review
### Instruction:

Convert text to sql: How many different items were reviewed by some users? | 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 ( distinct _ ) from _ | select count ( distinct i_id ) from review
### Instruction:

Convert text to sql: Find the number of 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 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: Find the names of users who did not leave 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 name from useracct where u_id not in ( select u_id from review )