Database: music_2

Question: Find all the stage positions of the musicians with first name "Solveig"
SQL: SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  "Solveig"

Question: Find all the songs performed by artist with last name "Heilo"
SQL: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Lastname  =  "Heilo"

Question: How many musicians performed in the song "Flash"?
SQL: SELECT count(*) 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  =  "Flash"

Question: Find all the songs produced by artists with first name "Marianne".
SQL: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T2.Firstname  =  "Marianne"

Question: Who performed the song named "Badlands"? Show the first name and the 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  =  "Badlands"

Question: Who is performing in the back stage position for the song "Badlands"? Show the first name and the 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  =  "Badlands" AND T1.StagePosition  =  "back"

Question: What is the label that has the most albums?
SQL: SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1

Question: What is the last name of the musician that have produced the most number of 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

Question: What is the last name of the musician that has been at the back position the most?
SQL: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE stageposition  =  "back" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1

Question: Find all the songs whose name contains the word "the".
SQL: SELECT title FROM songs WHERE title LIKE '% the %'

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"

Question: What is the most used instrument?
SQL: SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1

Question: What instruments does 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"

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"