db_id stringclasses 140 values | schema listlengths 0 26 | question stringlengths 16 224 | query stringlengths 18 577 | query_toks listlengths 4 90 | query_toks_no_value listlengths 4 125 | question_toks listlengths 4 44 |
|---|---|---|---|---|---|---|
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find all the songs whose name contains the word "the". | SELECT title FROM songs WHERE title LIKE '% the %' | [
"SELECT",
"title",
"FROM",
"songs",
"WHERE",
"title",
"LIKE",
"'",
"%",
"the",
"%",
"'"
] | [
"select",
"title",
"from",
"songs",
"where",
"title",
"like",
"value"
] | [
"Find",
"all",
"the",
"songs",
"whose",
"name",
"contains",
"the",
"word",
"``",
"the",
"''",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the names of the songs whose title has the word "the"? | SELECT title FROM songs WHERE title LIKE '% the %' | [
"SELECT",
"title",
"FROM",
"songs",
"WHERE",
"title",
"LIKE",
"'",
"%",
"the",
"%",
"'"
] | [
"select",
"title",
"from",
"songs",
"where",
"title",
"like",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"songs",
"whose",
"title",
"has",
"the",
"word",
"``",
"the",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are all the instruments used? | SELECT DISTINCT instrument FROM Instruments | [
"SELECT",
"DISTINCT",
"instrument",
"FROM",
"Instruments"
] | [
"select",
"distinct",
"instrument",
"from",
"instruments"
] | [
"What",
"are",
"all",
"the",
"instruments",
"used",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the different instruments listed in the database? | SELECT DISTINCT instrument FROM Instruments | [
"SELECT",
"DISTINCT",
"instrument",
"FROM",
"Instruments"
] | [
"select",
"distinct",
"instrument",
"from",
"instruments"
] | [
"What",
"are",
"the",
"different",
"instruments",
"listed",
"in",
"the",
"database",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instrument did the musician with last name "Heilo" use in the song "Le Pop"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t3",
".",
"title",
"=",
"value"
] | [
"What",
"instrument",
"did",
"the",
"musician",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"use",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instruments did the musician with the last name "Heilo" play in the song "Le Pop"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t3",
".",
"title",
"=",
"value"
] | [
"What",
"instruments",
"did",
"the",
"musician",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"play",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the most used instrument? | SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 | [
"SELECT",
"instrument",
"FROM",
"instruments",
"GROUP",
"BY",
"instrument",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"instrument",
"from",
"instruments",
"group",
"by",
"instrument",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"most",
"used",
"instrument",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instrument is used the most? | SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1 | [
"SELECT",
"instrument",
"FROM",
"instruments",
"GROUP",
"BY",
"instrument",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"instrument",
"from",
"instruments",
"group",
"by",
"instrument",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"instrument",
"is",
"used",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs have used the instrument "drums"? | SELECT count(*) FROM instruments WHERE instrument = "drums" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"instruments",
"WHERE",
"instrument",
"=",
"``",
"drums",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"instruments",
"where",
"instrument",
"=",
"value"
] | [
"How",
"many",
"songs",
"have",
"used",
"the",
"instrument",
"``",
"drums",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs use drums as an instrument? | SELECT count(*) FROM instruments WHERE instrument = "drums" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"instruments",
"WHERE",
"instrument",
"=",
"``",
"drums",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"instruments",
"where",
"instrument",
"=",
"value"
] | [
"How",
"many",
"songs",
"use",
"drums",
"as",
"an",
"instrument",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instruments does the the song "Le Pop" use? | SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"instrument",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"instrument",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"instruments",
"does",
"the",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"use",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the instruments are used in the song "Le Pop"? | SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"instrument",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"instrument",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"instruments",
"are",
"used",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many instruments does the song "Le Pop" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"How",
"many",
"instruments",
"does",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"use",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many different instruments are used in the song "Le Pop"? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"How",
"many",
"different",
"instruments",
"are",
"used",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many instrument does the musician with last name "Heilo" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"Band",
"AS",
"T2",
"ON",
"T1.bandmateid",
"=",
"T2.id",
"WHERE",
"T2.lastname",
"=",
"``",
"Heilo",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmateid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"instrument",
"does",
"the",
"musician",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"use",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many different instruments does the musician with the last name "Heilo" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"Band",
"AS",
"T2",
"ON",
"T1.bandmateid",
"=",
"T2.id",
"WHERE",
"T2.lastname",
"=",
"``",
"Heilo",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmateid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"lastname",
"=",
"value"
] | [
"How",
"many",
"different",
"instruments",
"does",
"the",
"musician",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"use",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find all the instruments ever used by the musician with last name "Heilo"? | SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
"SELECT",
"instrument",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"Band",
"AS",
"T2",
"ON",
"T1.bandmateid",
"=",
"T2.id",
"WHERE",
"T2.lastname",
"=",
"``",
"Heilo",
"''"
] | [
"select",
"instrument",
"from",
"instruments",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmateid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"lastname",
"=",
"value"
] | [
"Find",
"all",
"the",
"instruments",
"ever",
"used",
"by",
"the",
"musician",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are all the instruments used by the musician with the last name "Heilo"? | SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | [
"SELECT",
"instrument",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"Band",
"AS",
"T2",
"ON",
"T1.bandmateid",
"=",
"T2.id",
"WHERE",
"T2.lastname",
"=",
"``",
"Heilo",
"''"
] | [
"select",
"instrument",
"from",
"instruments",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmateid",
"=",
"t2",
".",
"id",
"where",
"t2",
".",
"lastname",
"=",
"value"
] | [
"What",
"are",
"all",
"the",
"instruments",
"used",
"by",
"the",
"musician",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which song has the most vocals? | 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 | [
"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"
] | [
"select",
"title",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"group",
"by",
"t1",
".",
"songid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"song",
"has",
"the",
"most",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the song with the most vocals? | 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 | [
"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"
] | [
"select",
"title",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"group",
"by",
"t1",
".",
"songid",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"song",
"with",
"the",
"most",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type is the most frequently appearring type? | SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"GROUP",
"BY",
"TYPE",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"type",
"from",
"vocals",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"vocal",
"type",
"is",
"the",
"most",
"frequently",
"appearring",
"type",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the type of vocables that appears most frequently? | SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1 | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"GROUP",
"BY",
"TYPE",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"type",
"from",
"vocals",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"type",
"of",
"vocables",
"that",
"appears",
"most",
"frequently",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type has the band mate with last name "Heilo" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"lastname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"vocal",
"type",
"has",
"the",
"band",
"mate",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the type of vocals that the band member with the last name "Heilo" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"lastname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"type",
"of",
"vocals",
"that",
"the",
"band",
"member",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the vocal types used in song "Le Pop"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"vocal",
"types",
"used",
"in",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the types of vocals used in the song "Le Pop"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"vocals",
"used",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find the number of vocal types used in song "Demon Kitty Rag"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Demon",
"Kitty",
"Rag",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"vocal",
"types",
"used",
"in",
"song",
"``",
"Demon",
"Kitty",
"Rag",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the types of vocals used in the song "Demon Kitty Rag"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Demon",
"Kitty",
"Rag",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"vocals",
"used",
"in",
"the",
"song",
"``",
"Demon",
"Kitty",
"Rag",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs have a lead vocal? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead" | [
"SELECT",
"count",
"(",
"DISTINCT",
"title",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"TYPE",
"=",
"``",
"lead",
"''"
] | [
"select",
"count",
"(",
"distinct",
"title",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"type",
"=",
"value"
] | [
"How",
"many",
"songs",
"have",
"a",
"lead",
"vocal",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs have vocals of type lead? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead" | [
"SELECT",
"count",
"(",
"DISTINCT",
"title",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"TYPE",
"=",
"``",
"lead",
"''"
] | [
"select",
"count",
"(",
"distinct",
"title",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"type",
"=",
"value"
] | [
"How",
"many",
"songs",
"have",
"vocals",
"of",
"type",
"lead",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t2",
".",
"title",
"=",
"value"
] | [
"Which",
"vocal",
"type",
"did",
"the",
"musician",
"with",
"first",
"name",
"``",
"Solveig",
"''",
"played",
"in",
"the",
"song",
"with",
"title",
"``",
"A",
"Bar",
"in",
"Amsterdam",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the types of vocals that the musician with the first name "Solveig" played in the song "A Bar in Amsterdam"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t2",
".",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"vocals",
"that",
"the",
"musician",
"with",
"the",
"first",
"name",
"``",
"Solveig",
"''",
"played",
"in",
"the",
"song",
"``",
"A",
"Bar",
"in",
"Amsterdam",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find all the songs that do not have a lead vocal. | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"Find",
"all",
"the",
"songs",
"that",
"do",
"not",
"have",
"a",
"lead",
"vocal",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the names of the songs without a lead vocal? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"songs",
"without",
"a",
"lead",
"vocal",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find all the vocal types. | SELECT DISTINCT TYPE FROM vocals | [
"SELECT",
"DISTINCT",
"TYPE",
"FROM",
"vocals"
] | [
"select",
"distinct",
"type",
"from",
"vocals"
] | [
"Find",
"all",
"the",
"vocal",
"types",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the different types of vocals? | SELECT DISTINCT TYPE FROM vocals | [
"SELECT",
"DISTINCT",
"TYPE",
"FROM",
"vocals"
] | [
"select",
"distinct",
"type",
"from",
"vocals"
] | [
"What",
"are",
"the",
"different",
"types",
"of",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the albums produced in year 2010? | SELECT * FROM Albums WHERE YEAR = 2010 | [
"SELECT",
"*",
"FROM",
"Albums",
"WHERE",
"YEAR",
"=",
"2010"
] | [
"select",
"*",
"from",
"albums",
"where",
"year",
"=",
"value"
] | [
"What",
"are",
"the",
"albums",
"produced",
"in",
"year",
"2010",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What information is there on albums from 2010? | SELECT * FROM Albums WHERE YEAR = 2010 | [
"SELECT",
"*",
"FROM",
"Albums",
"WHERE",
"YEAR",
"=",
"2010"
] | [
"select",
"*",
"from",
"albums",
"where",
"year",
"=",
"value"
] | [
"What",
"information",
"is",
"there",
"on",
"albums",
"from",
"2010",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Who performed the song named "Le Pop"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"Who",
"performed",
"the",
"song",
"named",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the first and last name of artist who performed "Le Pop"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"is",
"the",
"first",
"and",
"last",
"name",
"of",
"artist",
"who",
"performed",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the last name of the musician that have produced the most songs? | 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 | [
"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"
] | [
"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",
"value"
] | [
"What",
"is",
"the",
"last",
"name",
"of",
"the",
"musician",
"that",
"have",
"produced",
"the",
"most",
"songs",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the last name of the artist who sang the most songs? | 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 | [
"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"
] | [
"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",
"value"
] | [
"What",
"is",
"the",
"last",
"name",
"of",
"the",
"artist",
"who",
"sang",
"the",
"most",
"songs",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instrument did the musician with last name "Heilo" use in the song "Badlands"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t3",
".",
"title",
"=",
"value"
] | [
"What",
"instrument",
"did",
"the",
"musician",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"use",
"in",
"the",
"song",
"``",
"Badlands",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What instruments did the musician with the last name "Heilo" play in "Badlands"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t3",
".",
"title",
"=",
"value"
] | [
"What",
"instruments",
"did",
"the",
"musician",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"play",
"in",
"``",
"Badlands",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many instruments does the song "Badlands" use? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Badlands",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"How",
"many",
"instruments",
"does",
"the",
"song",
"``",
"Badlands",
"''",
"use",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many different instruments are used in the song "Badlands"? | SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | [
"SELECT",
"count",
"(",
"DISTINCT",
"instrument",
")",
"FROM",
"instruments",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Badlands",
"''"
] | [
"select",
"count",
"(",
"distinct",
"instrument",
")",
"from",
"instruments",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"How",
"many",
"different",
"instruments",
"are",
"used",
"in",
"the",
"song",
"``",
"Badlands",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the vocal types used in song "Badlands"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Badlands",
"''"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"vocal",
"types",
"used",
"in",
"song",
"``",
"Badlands",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What types of vocals are used in the song "Badlands"? | SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands" | [
"SELECT",
"TYPE",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Badlands",
"''"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"What",
"types",
"of",
"vocals",
"are",
"used",
"in",
"the",
"song",
"``",
"Badlands",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find the number of vocal types used in song "Le Pop" | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"vocal",
"types",
"used",
"in",
"song",
"``",
"Le",
"Pop",
"''"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many vocal types are used in the song "Le Pop"? | SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop" | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"title",
"=",
"``",
"Le",
"Pop",
"''"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"title",
"=",
"value"
] | [
"How",
"many",
"vocal",
"types",
"are",
"used",
"in",
"the",
"song",
"``",
"Le",
"Pop",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs have a shared vocal? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | [
"SELECT",
"count",
"(",
"DISTINCT",
"title",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"TYPE",
"=",
"``",
"shared",
"''"
] | [
"select",
"count",
"(",
"distinct",
"title",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"type",
"=",
"value"
] | [
"How",
"many",
"songs",
"have",
"a",
"shared",
"vocal",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many different songs have shared vocals? | SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | [
"SELECT",
"count",
"(",
"DISTINCT",
"title",
")",
"FROM",
"vocals",
"AS",
"T1",
"JOIN",
"songs",
"AS",
"T2",
"ON",
"T1.songid",
"=",
"T2.songid",
"WHERE",
"TYPE",
"=",
"``",
"shared",
"''"
] | [
"select",
"count",
"(",
"distinct",
"title",
")",
"from",
"vocals",
"as",
"t1",
"join",
"songs",
"as",
"t2",
"on",
"t1",
".",
"songid",
"=",
"t2",
".",
"songid",
"where",
"type",
"=",
"value"
] | [
"How",
"many",
"different",
"songs",
"have",
"shared",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find all the songs that do not have a back vocal. | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"Find",
"all",
"the",
"songs",
"that",
"do",
"not",
"have",
"a",
"back",
"vocal",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the different names of all songs without back vocals? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"different",
"names",
"of",
"all",
"songs",
"without",
"back",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type has the band mate with first name "Solveig" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"firstname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"vocal",
"type",
"has",
"the",
"band",
"mate",
"with",
"first",
"name",
"``",
"Solveig",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the types of vocals that the band member with the first name "Solveig" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"firstname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"vocals",
"that",
"the",
"band",
"member",
"with",
"the",
"first",
"name",
"``",
"Solveig",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t2",
".",
"title",
"=",
"value"
] | [
"Which",
"vocal",
"type",
"did",
"the",
"musician",
"with",
"last",
"name",
"``",
"Heilo",
"''",
"played",
"in",
"the",
"song",
"with",
"title",
"``",
"Der",
"Kapitan",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the types of vocals that the musician with the last name "Heilo" played in "Der Kapitan"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t2",
".",
"title",
"=",
"value"
] | [
"What",
"are",
"the",
"types",
"of",
"vocals",
"that",
"the",
"musician",
"with",
"the",
"last",
"name",
"``",
"Heilo",
"''",
"played",
"in",
"``",
"Der",
"Kapitan",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find the first name of the band mate that has performed in most songs. | 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 | [
"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"
] | [
"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",
"value"
] | [
"Find",
"the",
"first",
"name",
"of",
"the",
"band",
"mate",
"that",
"has",
"performed",
"in",
"most",
"songs",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the first name of the band mate who perfomed in the most songs? | 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 | [
"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"
] | [
"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",
"value"
] | [
"What",
"is",
"the",
"first",
"name",
"of",
"the",
"band",
"mate",
"who",
"perfomed",
"in",
"the",
"most",
"songs",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Which vocal type has the band mate with first name "Marianne" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"firstname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"vocal",
"type",
"has",
"the",
"band",
"mate",
"with",
"first",
"name",
"``",
"Marianne",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the vocal type of the band mate whose first name is "Marianne" played the most? | 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 | [
"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"
] | [
"select",
"type",
"from",
"vocals",
"as",
"t1",
"join",
"band",
"as",
"t2",
"on",
"t1",
".",
"bandmate",
"=",
"t2",
".",
"id",
"where",
"firstname",
"=",
"value",
"group",
"by",
"type",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"vocal",
"type",
"of",
"the",
"band",
"mate",
"whose",
"first",
"name",
"is",
"``",
"Marianne",
"''",
"played",
"the",
"most",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name. | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t1",
".",
"stageposition",
"=",
"value"
] | [
"Who",
"is",
"performing",
"in",
"the",
"back",
"stage",
"position",
"for",
"the",
"song",
"``",
"Der",
"Kapitan",
"''",
"?",
"Show",
"the",
"first",
"name",
"and",
"last",
"name",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What is the first and last name of the artist who performed back stage for the song "Der Kapitan"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value",
"and",
"t1",
".",
"stageposition",
"=",
"value"
] | [
"What",
"is",
"the",
"first",
"and",
"last",
"name",
"of",
"the",
"artist",
"who",
"performed",
"back",
"stage",
"for",
"the",
"song",
"``",
"Der",
"Kapitan",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find the name of songs that does not have a back vocal. | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"Find",
"the",
"name",
"of",
"songs",
"that",
"does",
"not",
"have",
"a",
"back",
"vocal",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the names of the songs that do not have back vocals? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"songs",
"that",
"do",
"not",
"have",
"back",
"vocals",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the songs in album "A Kiss Before You Go: Live in Hamburg"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"songs",
"in",
"album",
"``",
"A",
"Kiss",
"Before",
"You",
"Go",
":",
"Live",
"in",
"Hamburg",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the song titles on the album "A Kiss Before You Go: Live in Hamburg"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"song",
"titles",
"on",
"the",
"album",
"``",
"A",
"Kiss",
"Before",
"You",
"Go",
":",
"Live",
"in",
"Hamburg",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are all the songs in albums under label "Universal Music Group"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"all",
"the",
"songs",
"in",
"albums",
"under",
"label",
"``",
"Universal",
"Music",
"Group",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | What are the names of all the songs whose album is under the label of "Universal Music Group"? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"all",
"the",
"songs",
"whose",
"album",
"is",
"under",
"the",
"label",
"of",
"``",
"Universal",
"Music",
"Group",
"''",
"?"
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | Find the number of songs in all the studio albums. | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"songs",
"in",
"all",
"the",
"studio",
"albums",
"."
] |
music_2 | [
"CREATE TABLE \"Songs\" ( \n\t\"SongId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT \n);",
"CREATE TABLE \"Albums\" ( \n\t\"AId\" INTEGER PRIMARY KEY, \n\t\"Title\" TEXT, \n\t\"Year\" INTEGER, \n\t\"Label\" TEXT, \n\t\"Type\" TEXT );",
"CREATE TABLE \"Band\" ( \n\t\"Id\" INTEGER PRIMARY KEY, \n\t\"Firstname\" TEXT, \n\t\"Lastname\" TEXT );",
"CREATE TABLE \"Instruments\" ( \n\t\"SongId\" INTEGER, \n\t\"BandmateId\" INTEGER, \n\t\"Instrument\" TEXT ,\n\tPRIMARY KEY(SongId, BandmateId, Instrument),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (BandmateId) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Performance\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"StagePosition\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);",
"CREATE TABLE \"Tracklists\" ( \n\t\"AlbumId\" INTEGER, \n\t\"Position\" INTEGER, \n\t\"SongId\" INTEGER ,\n\tPRIMARY KEY(AlbumId, Position),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (AlbumId) REFERENCES Albums(AId)\n);",
"CREATE TABLE \"Vocals\" ( \n\t\"SongId\" INTEGER, \n\t\"Bandmate\" INTEGER, \n\t\"Type\" TEXT,\n\tPRIMARY KEY(SongId, Bandmate),\n\tFOREIGN KEY (SongId) REFERENCES Songs(SongId),\n\tFOREIGN KEY (Bandmate) REFERENCES Band(Id)\n);"
] | How many songs appear in studio albums? | 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" | [
"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",
"''"
] | [
"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",
"=",
"value"
] | [
"How",
"many",
"songs",
"appear",
"in",
"studio",
"albums",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Who is the founder of Sony? | SELECT founder FROM manufacturers WHERE name = 'Sony' | [
"SELECT",
"founder",
"FROM",
"manufacturers",
"WHERE",
"name",
"=",
"'Sony",
"'"
] | [
"select",
"founder",
"from",
"manufacturers",
"where",
"name",
"=",
"value"
] | [
"Who",
"is",
"the",
"founder",
"of",
"Sony",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Return the founder of Sony. | SELECT founder FROM manufacturers WHERE name = 'Sony' | [
"SELECT",
"founder",
"FROM",
"manufacturers",
"WHERE",
"name",
"=",
"'Sony",
"'"
] | [
"select",
"founder",
"from",
"manufacturers",
"where",
"name",
"=",
"value"
] | [
"Return",
"the",
"founder",
"of",
"Sony",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Where is the headquarter of the company founded by James? | SELECT headquarter FROM manufacturers WHERE founder = 'James' | [
"SELECT",
"headquarter",
"FROM",
"manufacturers",
"WHERE",
"founder",
"=",
"'James",
"'"
] | [
"select",
"headquarter",
"from",
"manufacturers",
"where",
"founder",
"=",
"value"
] | [
"Where",
"is",
"the",
"headquarter",
"of",
"the",
"company",
"founded",
"by",
"James",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What is the headquarter of the company whose founder is James? | SELECT headquarter FROM manufacturers WHERE founder = 'James' | [
"SELECT",
"headquarter",
"FROM",
"manufacturers",
"WHERE",
"founder",
"=",
"'James",
"'"
] | [
"select",
"headquarter",
"from",
"manufacturers",
"where",
"founder",
"=",
"value"
] | [
"What",
"is",
"the",
"headquarter",
"of",
"the",
"company",
"whose",
"founder",
"is",
"James",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first. | SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC | [
"SELECT",
"name",
",",
"headquarter",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC"
] | [
"select",
"name",
",",
"headquarter",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc"
] | [
"Find",
"all",
"manufacturers",
"'",
"names",
"and",
"their",
"headquarters",
",",
"sorted",
"by",
"the",
"ones",
"with",
"highest",
"revenue",
"first",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the names and headquarters of all manufacturers, ordered by revenue descending? | SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC | [
"SELECT",
"name",
",",
"headquarter",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC"
] | [
"select",
"name",
",",
"headquarter",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc"
] | [
"What",
"are",
"the",
"names",
"and",
"headquarters",
"of",
"all",
"manufacturers",
",",
"ordered",
"by",
"revenue",
"descending",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the average, maximum and total revenues of all companies? | SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers | [
"SELECT",
"avg",
"(",
"revenue",
")",
",",
"max",
"(",
"revenue",
")",
",",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers"
] | [
"select",
"avg",
"(",
"revenue",
")",
",",
"max",
"(",
"revenue",
")",
",",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers"
] | [
"What",
"are",
"the",
"average",
",",
"maximum",
"and",
"total",
"revenues",
"of",
"all",
"companies",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Return the average, maximum, and total revenues across all manufacturers. | SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers | [
"SELECT",
"avg",
"(",
"revenue",
")",
",",
"max",
"(",
"revenue",
")",
",",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers"
] | [
"select",
"avg",
"(",
"revenue",
")",
",",
"max",
"(",
"revenue",
")",
",",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers"
] | [
"Return",
"the",
"average",
",",
"maximum",
",",
"and",
"total",
"revenues",
"across",
"all",
"manufacturers",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | How many companies were created by Andy? | SELECT count(*) FROM manufacturers WHERE founder = 'Andy' | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"manufacturers",
"WHERE",
"founder",
"=",
"'Andy",
"'"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"manufacturers",
"where",
"founder",
"=",
"value"
] | [
"How",
"many",
"companies",
"were",
"created",
"by",
"Andy",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Return the number of companies created by Andy. | SELECT count(*) FROM manufacturers WHERE founder = 'Andy' | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"manufacturers",
"WHERE",
"founder",
"=",
"'Andy",
"'"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"manufacturers",
"where",
"founder",
"=",
"value"
] | [
"Return",
"the",
"number",
"of",
"companies",
"created",
"by",
"Andy",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the total revenue created by the companies whose headquarter is located at Austin. | SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin' | [
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'"
] | [
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value"
] | [
"Find",
"the",
"total",
"revenue",
"created",
"by",
"the",
"companies",
"whose",
"headquarter",
"is",
"located",
"at",
"Austin",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What is the sum of revenue from companies with headquarters in Austin? | SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin' | [
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Austin",
"'"
] | [
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value"
] | [
"What",
"is",
"the",
"sum",
"of",
"revenue",
"from",
"companies",
"with",
"headquarters",
"in",
"Austin",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the different cities listed? | SELECT DISTINCT headquarter FROM manufacturers | [
"SELECT",
"DISTINCT",
"headquarter",
"FROM",
"manufacturers"
] | [
"select",
"distinct",
"headquarter",
"from",
"manufacturers"
] | [
"What",
"are",
"the",
"different",
"cities",
"listed",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Give the distinct headquarters of manufacturers. | SELECT DISTINCT headquarter FROM manufacturers | [
"SELECT",
"DISTINCT",
"headquarter",
"FROM",
"manufacturers"
] | [
"select",
"distinct",
"headquarter",
"from",
"manufacturers"
] | [
"Give",
"the",
"distinct",
"headquarters",
"of",
"manufacturers",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the number of manufactures that are based in Tokyo or Beijing. | SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Tokyo",
"'",
"OR",
"headquarter",
"=",
"'Beijing",
"'"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
"or",
"headquarter",
"=",
"value"
] | [
"Find",
"the",
"number",
"of",
"manufactures",
"that",
"are",
"based",
"in",
"Tokyo",
"or",
"Beijing",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | How many manufacturers have headquarters in either Tokyo or Beijing? | SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"manufacturers",
"WHERE",
"headquarter",
"=",
"'Tokyo",
"'",
"OR",
"headquarter",
"=",
"'Beijing",
"'"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
"or",
"headquarter",
"=",
"value"
] | [
"How",
"many",
"manufacturers",
"have",
"headquarters",
"in",
"either",
"Tokyo",
"or",
"Beijing",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the founder of the company whose name begins with the letter 'S'. | SELECT founder FROM manufacturers WHERE name LIKE 'S%' | [
"SELECT",
"founder",
"FROM",
"manufacturers",
"WHERE",
"name",
"LIKE",
"'S",
"%",
"'"
] | [
"select",
"founder",
"from",
"manufacturers",
"where",
"name",
"like",
"value"
] | [
"Find",
"the",
"founder",
"of",
"the",
"company",
"whose",
"name",
"begins",
"with",
"the",
"letter",
"'S",
"'",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Who is the founders of companies whose first letter is S? | SELECT founder FROM manufacturers WHERE name LIKE 'S%' | [
"SELECT",
"founder",
"FROM",
"manufacturers",
"WHERE",
"name",
"LIKE",
"'S",
"%",
"'"
] | [
"select",
"founder",
"from",
"manufacturers",
"where",
"name",
"like",
"value"
] | [
"Who",
"is",
"the",
"founders",
"of",
"companies",
"whose",
"first",
"letter",
"is",
"S",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the name of companies whose revenue is between 100 and 150. | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 | [
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
"BETWEEN",
"100",
"AND",
"150"
] | [
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
"between",
"value",
"and",
"value"
] | [
"Find",
"the",
"name",
"of",
"companies",
"whose",
"revenue",
"is",
"between",
"100",
"and",
"150",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the names of companies with revenue between 100 and 150? | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 | [
"SELECT",
"name",
"FROM",
"manufacturers",
"WHERE",
"revenue",
"BETWEEN",
"100",
"AND",
"150"
] | [
"select",
"name",
"from",
"manufacturers",
"where",
"revenue",
"between",
"value",
"and",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"companies",
"with",
"revenue",
"between",
"100",
"and",
"150",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What is the total revenue of all companies whose main office is at Tokyo or Taiwan? | SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' | [
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"Headquarter",
"=",
"'Tokyo",
"'",
"OR",
"Headquarter",
"=",
"'Taiwan",
"'"
] | [
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
"or",
"headquarter",
"=",
"value"
] | [
"What",
"is",
"the",
"total",
"revenue",
"of",
"all",
"companies",
"whose",
"main",
"office",
"is",
"at",
"Tokyo",
"or",
"Taiwan",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Return the total revenue of companies with headquarters in Tokyo or Taiwan. | SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' | [
"SELECT",
"sum",
"(",
"revenue",
")",
"FROM",
"manufacturers",
"WHERE",
"Headquarter",
"=",
"'Tokyo",
"'",
"OR",
"Headquarter",
"=",
"'Taiwan",
"'"
] | [
"select",
"sum",
"(",
"revenue",
")",
"from",
"manufacturers",
"where",
"headquarter",
"=",
"value",
"or",
"headquarter",
"=",
"value"
] | [
"Return",
"the",
"total",
"revenue",
"of",
"companies",
"with",
"headquarters",
"in",
"Tokyo",
"or",
"Taiwan",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the name of product that is produced by both companies Creative Labs and Sony. | 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' | [
"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",
"'"
] | [
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value"
] | [
"Find",
"the",
"name",
"of",
"product",
"that",
"is",
"produced",
"by",
"both",
"companies",
"Creative",
"Labs",
"and",
"Sony",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the names of products produced by both Creative Labs and Sony? | 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' | [
"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",
"'"
] | [
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"name",
"from",
"products",
"as",
"t1",
"join",
"manufacturers",
"as",
"t2",
"on",
"t1",
".",
"manufacturer",
"=",
"t2",
".",
"code",
"where",
"t2",
".",
"name",
"=",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"products",
"produced",
"by",
"both",
"Creative",
"Labs",
"and",
"Sony",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the name, headquarter and founder of the manufacturer that has the highest revenue. | SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1 | [
"SELECT",
"name",
",",
"headquarter",
",",
"founder",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
",",
"headquarter",
",",
"founder",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
",",
"headquarter",
"and",
"founder",
"of",
"the",
"manufacturer",
"that",
"has",
"the",
"highest",
"revenue",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the names, headquarters and founders of the company with the highest revenue? | SELECT name , headquarter , founder FROM manufacturers ORDER BY revenue DESC LIMIT 1 | [
"SELECT",
"name",
",",
"headquarter",
",",
"founder",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC",
"LIMIT",
"1"
] | [
"select",
"name",
",",
"headquarter",
",",
"founder",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc",
"limit",
"value"
] | [
"What",
"are",
"the",
"names",
",",
"headquarters",
"and",
"founders",
"of",
"the",
"company",
"with",
"the",
"highest",
"revenue",
"?"
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order. | SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC | [
"SELECT",
"name",
",",
"headquarter",
",",
"revenue",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC"
] | [
"select",
"name",
",",
"headquarter",
",",
"revenue",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc"
] | [
"Find",
"the",
"name",
",",
"headquarter",
"and",
"revenue",
"of",
"all",
"manufacturers",
"sorted",
"by",
"their",
"revenue",
"in",
"the",
"descending",
"order",
"."
] |
manufactory_1 | [
"CREATE TABLE Manufacturers (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL,\n Headquarter VARCHAR(255) NOT NULL,\n Founder VARCHAR(255) NOT NULL,\n Revenue REAL,\n PRIMARY KEY (Code) \n);",
"CREATE TABLE Products (\n Code INTEGER,\n Name VARCHAR(255) NOT NULL ,\n Price DECIMAL NOT NULL ,\n Manufacturer INTEGER NOT NULL,\n PRIMARY KEY (Code), \n FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code)\n);"
] | What are the names, headquarters and revenues for manufacturers, sorted by revenue descending? | SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC | [
"SELECT",
"name",
",",
"headquarter",
",",
"revenue",
"FROM",
"manufacturers",
"ORDER",
"BY",
"revenue",
"DESC"
] | [
"select",
"name",
",",
"headquarter",
",",
"revenue",
"from",
"manufacturers",
"order",
"by",
"revenue",
"desc"
] | [
"What",
"are",
"the",
"names",
",",
"headquarters",
"and",
"revenues",
"for",
"manufacturers",
",",
"sorted",
"by",
"revenue",
"descending",
"?"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.