db_name
stringclasses 146
values | prompt
stringlengths 310
4.81k
|
|---|---|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find all the songs whose name contains the word "the".
#
### SQL:
#
# SELECT title FROM songs WHERE title LIKE '% the %'
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the names of the songs whose title has the word "the"?
#
### SQL:
#
# SELECT title FROM songs WHERE title LIKE '% the %'
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are all the instruments used?
#
### SQL:
#
# SELECT DISTINCT instrument FROM Instruments
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the different instruments listed in the database?
#
### SQL:
#
# SELECT DISTINCT instrument FROM Instruments
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instrument did the musician with last name "Heilo" use in the song "Le Pop"?
#
### SQL:
#
# SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instruments did the musician with the last name "Heilo" play in the song "Le Pop"?
#
### SQL:
#
# SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the most used instrument?
#
### SQL:
#
# SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instrument is used the most?
#
### SQL:
#
# SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs have used the instrument "drums"?
#
### SQL:
#
# SELECT count(*) FROM instruments WHERE instrument = "drums"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs use drums as an instrument?
#
### SQL:
#
# SELECT count(*) FROM instruments WHERE instrument = "drums"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instruments does the the song "Le Pop" use?
#
### SQL:
#
# SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the instruments are used in the song "Le Pop"?
#
### SQL:
#
# SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many instruments does the song "Le Pop" use?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many different instruments are used in the song "Le Pop"?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many instrument does the musician with last name "Heilo" use?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many different instruments does the musician with the last name "Heilo" use?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find all the instruments ever used by the musician with last name "Heilo"?
#
### SQL:
#
# SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are all the instruments used by the musician with the last name "Heilo"?
#
### SQL:
#
# SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which song has the most vocals?
#
### SQL:
#
# SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the song with the most vocals?
#
### SQL:
#
# SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type is the most frequently appearring type?
#
### SQL:
#
# SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the type of vocables that appears most frequently?
#
### SQL:
#
# SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type has the band mate with last name "Heilo" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = "Heilo" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the type of vocals that the band member with the last name "Heilo" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = "Heilo" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the vocal types used in song "Le Pop"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the types of vocals used in the song "Le Pop"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find the number of vocal types used in song "Demon Kitty Rag"?
#
### SQL:
#
# SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the types of vocals used in the song "Demon Kitty Rag"?
#
### SQL:
#
# SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs have a lead vocal?
#
### SQL:
#
# SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs have vocals of type lead?
#
### SQL:
#
# SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the types of vocals that the musician with the first name "Solveig" played in the song "A Bar in Amsterdam"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find all the songs that do not have a lead vocal.
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the names of the songs without a lead vocal?
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find all the vocal types.
#
### SQL:
#
# SELECT DISTINCT TYPE FROM vocals
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the different types of vocals?
#
### SQL:
#
# SELECT DISTINCT TYPE FROM vocals
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the albums produced in year 2010?
#
### SQL:
#
# SELECT * FROM Albums WHERE YEAR = 2010
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What information is there on albums from 2010?
#
### SQL:
#
# SELECT * FROM Albums WHERE YEAR = 2010
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Who performed the song named "Le Pop"?
#
### SQL:
#
# SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the first and last name of artist who performed "Le Pop"?
#
### SQL:
#
# SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the last name of the musician that have produced the most songs?
#
### SQL:
#
# SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the last name of the artist who sang the most songs?
#
### SQL:
#
# SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instrument did the musician with last name "Heilo" use in the song "Badlands"?
#
### SQL:
#
# SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What instruments did the musician with the last name "Heilo" play in "Badlands"?
#
### SQL:
#
# SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many instruments does the song "Badlands" use?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many different instruments are used in the song "Badlands"?
#
### SQL:
#
# SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the vocal types used in song "Badlands"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What types of vocals are used in the song "Badlands"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find the number of vocal types used in song "Le Pop"
#
### SQL:
#
# SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many vocal types are used in the song "Le Pop"?
#
### SQL:
#
# SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs have a shared vocal?
#
### SQL:
#
# SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many different songs have shared vocals?
#
### SQL:
#
# SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find all the songs that do not have a back vocal.
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the different names of all songs without back vocals?
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type has the band mate with first name "Solveig" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the types of vocals that the band member with the first name "Solveig" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the types of vocals that the musician with the last name "Heilo" played in "Der Kapitan"?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find the first name of the band mate that has performed in most songs.
#
### SQL:
#
# SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the first name of the band mate who perfomed in the most songs?
#
### SQL:
#
# SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Which vocal type has the band mate with first name "Marianne" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the vocal type of the band mate whose first name is "Marianne" played the most?
#
### SQL:
#
# SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name.
#
### SQL:
#
# SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What is the first and last name of the artist who performed back stage for the song "Der Kapitan"?
#
### SQL:
#
# SELECT T2.firstname , T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find the name of songs that does not have a back vocal.
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the names of the songs that do not have back vocals?
#
### SQL:
#
# SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the songs in album "A Kiss Before You Go: Live in Hamburg"?
#
### SQL:
#
# SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = "A Kiss Before You Go: Live in Hamburg"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the song titles on the album "A Kiss Before You Go: Live in Hamburg"?
#
### SQL:
#
# SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = "A Kiss Before You Go: Live in Hamburg"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are all the songs in albums under label "Universal Music Group"?
#
### SQL:
#
# SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# What are the names of all the songs whose album is under the label of "Universal Music Group"?
#
### SQL:
#
# SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# Find the number of songs in all the studio albums.
#
### SQL:
#
# SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
#
### End.
|
music_2
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Songs ( SongId, Title )
# Albums ( AId, Title, Year, Label, Type )
# Band ( Id, Firstname, Lastname )
# Instruments ( SongId, BandmateId, Instrument )
# Performance ( SongId, Bandmate, StagePosition )
# Tracklists ( AlbumId, Position, SongId )
# Vocals ( SongId, Bandmate, Type )
#
# Instruments.BandmateId can be joined with Band.Id
# Instruments.SongId can be joined with Songs.SongId
# Performance.Bandmate can be joined with Band.Id
# Performance.SongId can be joined with Songs.SongId
# Tracklists.AlbumId can be joined with Albums.AId
# Tracklists.SongId can be joined with Songs.SongId
# Vocals.Bandmate can be joined with Band.Id
# Vocals.SongId can be joined with Songs.SongId
#
### Question:
#
# How many songs appear in studio albums?
#
### SQL:
#
# SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Who is the founder of Sony?
#
### SQL:
#
# SELECT founder FROM manufacturers WHERE name = 'Sony'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Return the founder of Sony.
#
### SQL:
#
# SELECT founder FROM manufacturers WHERE name = 'Sony'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Where is the headquarter of the company founded by James?
#
### SQL:
#
# SELECT headquarter FROM manufacturers WHERE founder = 'James'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What is the headquarter of the company whose founder is James?
#
### SQL:
#
# SELECT headquarter FROM manufacturers WHERE founder = 'James'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.
#
### SQL:
#
# SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the names and headquarters of all manufacturers, ordered by revenue descending?
#
### SQL:
#
# SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the average, maximum and total revenues of all companies?
#
### SQL:
#
# SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Return the average, maximum, and total revenues across all manufacturers.
#
### SQL:
#
# SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# How many companies were created by Andy?
#
### SQL:
#
# SELECT count(*) FROM manufacturers WHERE founder = 'Andy'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Return the number of companies created by Andy.
#
### SQL:
#
# SELECT count(*) FROM manufacturers WHERE founder = 'Andy'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the total revenue created by the companies whose headquarter is located at Austin.
#
### SQL:
#
# SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What is the sum of revenue from companies with headquarters in Austin?
#
### SQL:
#
# SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the different cities listed?
#
### SQL:
#
# SELECT DISTINCT headquarter FROM manufacturers
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Give the distinct headquarters of manufacturers.
#
### SQL:
#
# SELECT DISTINCT headquarter FROM manufacturers
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the number of manufactures that are based in Tokyo or Beijing.
#
### SQL:
#
# SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# How many manufacturers have headquarters in either Tokyo or Beijing?
#
### SQL:
#
# SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the founder of the company whose name begins with the letter 'S'.
#
### SQL:
#
# SELECT founder FROM manufacturers WHERE name LIKE 'S%'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Who is the founders of companies whose first letter is S?
#
### SQL:
#
# SELECT founder FROM manufacturers WHERE name LIKE 'S%'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the name of companies whose revenue is between 100 and 150.
#
### SQL:
#
# SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the names of companies with revenue between 100 and 150?
#
### SQL:
#
# SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
#
### SQL:
#
# SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Return the total revenue of companies with headquarters in Tokyo or Taiwan.
#
### SQL:
#
# SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the name of product that is produced by both companies Creative Labs and Sony.
#
### SQL:
#
# SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the names of products produced by both Creative Labs and Sony?
#
### SQL:
#
# SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony'
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the name, headquarter and founder of the manufacturer that has the highest revenue.
#
### SQL:
#
# SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the names, headquarters and founders of the company with the highest revenue?
#
### SQL:
#
# SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
#
### SQL:
#
# SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC
#
### End.
|
manufactory_1
|
### Complete SQL query only and with no explanation
### SQL tables followed by foreign key information:
#
# Manufacturers ( Code, Name, Headquarter, Founder, Revenue )
# Products ( Code, Name, Price, Manufacturer )
#
# Products.Manufacturer can be joined with Manufacturers.Code
#
### Question:
#
# What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
#
### SQL:
#
# SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC
#
### End.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.