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

Convert text to sql: How many distinct artists do the volumes associate to? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct artist_id ) from volume
### Instruction:

Convert text to sql: Count the number of distinct artists who have volumes. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct artist_id ) from volume
### Instruction:

Convert text to sql: Please show the date of ceremony of the volumes that last more than 2 weeks on top. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select music_festival.date_of_ceremony from music_festival join volume on music_festival.volume = volume.volume_id where volume.weeks_on_top > 2
### Instruction:

Convert text to sql: What are the dates of ceremony at music festivals corresponding to volumes that lasted more than 2 weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select music_festival.date_of_ceremony from music_festival join volume on music_festival.volume = volume.volume_id where volume.weeks_on_top > 2
### Instruction:

Convert text to sql: Please show the songs that have result "nominated" at music festivals. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.song from music_festival join volume on music_festival.volume = volume.volume_id where music_festival.result = 'Nominated'
### Instruction:

Convert text to sql: What are the songs in volumes that have resulted in a nomination at music festivals? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.song from music_festival join volume on music_festival.volume = volume.volume_id where music_festival.result = 'Nominated'
### Instruction:

Convert text to sql: What are the issue dates of volumes associated with the artist "Gorgoroth"? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.issue_date from artist join volume on artist.artist_id = volume.artist_id where artist.artist = 'Gorgoroth'
### Instruction:

Convert text to sql: Return the issue dates of volumes that are by the artist named Gorgoroth. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.issue_date from artist join volume on artist.artist_id = volume.artist_id where artist.artist = 'Gorgoroth'
### Instruction:

Convert text to sql: What are the songs in volumes associated with the artist aged 32 or older? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.song from artist join volume on artist.artist_id = volume.artist_id where artist.age >= 32
### Instruction:

Convert text to sql: Return names of songs in volumes that are by artists that are at least 32 years old. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select volume.song from artist join volume on artist.artist_id = volume.artist_id where artist.age >= 32
### Instruction:

Convert text to sql: What is the average weeks on top of volumes associated with the artist aged 25 or younger? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( volume.weeks_on_top ) from artist join volume on artist.artist_id = volume.artist_id where artist.age <= 25
### Instruction:

Convert text to sql: Return the average number of weeks on top for volumes by artists that are at most 25 years old. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( volume.weeks_on_top ) from artist join volume on artist.artist_id = volume.artist_id where artist.age <= 25
### Instruction:

Convert text to sql: What are the famous title of the artists associated with volumes with more than 2 weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top > 2
### Instruction:

Convert text to sql: Return the famous titles for artists that have volumes that lasted more than 2 weeks on top. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top > 2
### Instruction:

Convert text to sql: Please list the age and famous title of artists in descending order of age. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc | select famous_title , age from artist order by age desc
### Instruction:

Convert text to sql: What are the famous titles and ages of each artist, listed in descending order by age? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc | select famous_title , age from artist order by age desc
### Instruction:

Convert text to sql: What is the famous release date of the artist with the oldest age? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc limit _ | select famous_release_date from artist order by age desc limit 1
### Instruction:

Convert text to sql: Return the famous release date for the oldest artist. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc limit _ | select famous_release_date from artist order by age desc limit 1
### Instruction:

Convert text to sql: Please show the categories of the music festivals and the count. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select category , count ( * ) from music_festival group by category
### Instruction:

Convert text to sql: Return the number of music festivals of each category. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select category , count ( * ) from music_festival group by category
### Instruction:

Convert text to sql: What is the most common result of the music festival? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

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

Convert text to sql: Return the result that is most frequent at music festivals. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

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

Convert text to sql: Please show the categories of the music festivals with count more than 1. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select category from music_festival group by category having count ( * ) > 1
### Instruction:

Convert text to sql: What are the categories of music festivals for which there have been more than 1 music festival? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select category from music_festival group by category having count ( * ) > 1
### Instruction:

Convert text to sql: What is the song in the volume with the maximum weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc limit _ | select song from volume order by weeks_on_top desc limit 1
### Instruction:

Convert text to sql: Return the song in the volume that has spent the most weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ desc limit _ | select song from volume order by weeks_on_top desc limit 1
### Instruction:

Convert text to sql: Find the famous titles of artists that do not have any volume. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select famous_title from artist where artist_id not in ( select artist_id from volume )
### Instruction:

Convert text to sql: What are the famous titles of artists who do not have any volumes? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select famous_title from artist where artist_id not in ( select artist_id from volume )
### Instruction:

Convert text to sql: Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top > 2 intersect select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top < 2
### Instruction:

Convert text to sql: What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top > 2 intersect select artist.famous_title from artist join volume on artist.artist_id = volume.artist_id where volume.weeks_on_top < 2
### Instruction:

Convert text to sql: What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select date_of_ceremony from music_festival where category = 'Best Song' and result = 'Awarded'
### Instruction:

Convert text to sql: Return the dates of ceremony corresponding to music festivals that had the category "Best Song" and result "Awarded". | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select date_of_ceremony from music_festival where category = 'Best Song' and result = 'Awarded'
### Instruction:

Convert text to sql: What is the issue date of the volume with the minimum weeks on top? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ asc limit _ | select issue_date from volume order by weeks_on_top asc limit 1
### Instruction:

Convert text to sql: Return the issue date of the volume that has spent the fewest weeks on top. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ order by _ asc limit _ | select issue_date from volume order by weeks_on_top asc limit 1
### Instruction:

Convert text to sql: How many distinct artists have volumes? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct artist_id ) from volume
### Instruction:

Convert text to sql: Count the number of artists who have had volumes. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct artist_id ) from volume
### Instruction:

Convert text to sql: Please show the results of music festivals and the number of music festivals that have had each, ordered by this count. | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc | select result , count ( * ) from music_festival group by result order by count ( * ) desc
### Instruction:

Convert text to sql: How many music festivals have had each kind of result, ordered descending by count? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc | select result , count ( * ) from music_festival group by result order by count ( * ) desc
### Instruction:

Convert text to sql: What are the issue dates of volumes associated with the artist aged 23 or younger? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select issue_date from artist join volume on artist.artist_id = volume.artist_id where artist.age <= 23
### Instruction:

Convert text to sql: Return the issue dates of volumes by artists who are at most 23 years old? | artist : artist_id , artist , age , famous_title , famous_release_date | volume : volume_id , volume_issue , issue_date , weeks_on_top , song , artist_id | music_festival : id , music_festival , date_of_ceremony , category , volume , result | volume.artist_id = artist.artist_id | music_festival.volume = volume.volume_id | 

### Response:

select _ from _ where _ | select issue_date from artist join volume on artist.artist_id = volume.artist_id where artist.age <= 23
### Instruction:

Convert text to sql: How many roller coasters are there? | roller_coaster : roller_coaster_id , name , park , country_id , length , height , speed , opened , status | country : country_id , name , population , area , languages | roller_coaster.country_id = country.country_id | 

### Response:

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