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

Convert text to sql: How many artists are there? | 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 artist

### Instruction:

Convert text to sql: Count the number of artists. | 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 artist

### Instruction:

Convert text to sql: List the age of all music artists. | 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 age from artist

### Instruction:

Convert text to sql: What are the ages of all music artists? | 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 age from artist

### Instruction:

Convert text to sql: What is the average age of all artists? | 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 ( age ) from artist

### Instruction:

Convert text to sql: Return the average age across all artists. | 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 ( age ) from artist

### Instruction:

Convert text to sql: What are the famous titles of the artist "Triumfall"? | 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 famous_title from artist where artist = 'Triumfall'
### Instruction:

Convert text to sql: Return the famous titles of the artist called "Triumfall". | 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 famous_title from artist where artist = 'Triumfall'

### Instruction:

Convert text to sql: What are the distinct Famous release dates? | 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 distinct ( famous_release_date ) from artist

### Instruction:

Convert text to sql: Give the distinct famous release dates for all artists. | 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 distinct ( famous_release_date ) from artist

### Instruction:

Convert text to sql: Return the dates of ceremony and the results of all 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 date_of_ceremony , result from music_festival

### Instruction:

Convert text to sql: What are the dates of ceremony and results for each 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 date_of_ceremony , result from music_festival

### Instruction:

Convert text to sql: What are the category of music festivals with 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 category from music_festival where result = 'Awarded'
### Instruction:

Convert text to sql: Return the categories of music festivals that have the 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 category from music_festival where result = 'Awarded'

### Instruction:

Convert text to sql: What are the maximum and minimum week on top of all 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 max ( weeks_on_top ) , min ( weeks_on_top ) from volume

### Instruction:

Convert text to sql: Give the maximum and minimum weeks on top across all 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 max ( weeks_on_top ) , min ( weeks_on_top ) from volume

### Instruction:

Convert text to sql: What are the songs in volumes with more than 1 week 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 song from volume where weeks_on_top > 1

### Instruction:

Convert text to sql: Give the songs included in volumes that have more than 1 week 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 song from volume where weeks_on_top > 1

### Instruction:

Convert text to sql: Please list all songs in volumes in ascending alphabetical order. | 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 song from volume order by song asc
### Instruction:

Convert text to sql: What are the the songs in volumes, listed in ascending order? | 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 song from volume order by song asc

### 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 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 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 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 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 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 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 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 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 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 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 ( 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 ( 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 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 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 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 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 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 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 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 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 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 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 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 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 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 song from volume order by weeks_on_top desc limit 1