input
stringlengths
191
7.13k
output
stringlengths
19
578
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT title FROM songs WHERE title LIKE '% the %';
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT title FROM songs WHERE title LIKE '% the %';
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT DISTINCT instrument FROM Instruments;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT DISTINCT instrument FROM Instruments;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM instruments WHERE instrument = "drums";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM instruments WHERE instrument = "drums";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT DISTINCT TYPE FROM vocals;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT DISTINCT TYPE FROM vocals;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT * FROM Albums WHERE YEAR = 2010;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT * FROM Albums WHERE YEAR = 2010;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
SELECT count(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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;
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Songs, Albums, Band, Instruments, Performance, Tracklists, Vocals Columns: Songs.SongId, Songs.Title, Albums.AId, Albums.Title, Albums.Year, Albums.Label, Albums.Type, Band.Id, Band.Firstname, Band.Lastname, Instruments.SongId, Instruments.BandmateId, Instruments.Instrument, Performance.SongId, Performance.Band...
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";
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Who is the founder of Sony? [/INST]
SELECT founder FROM manufacturers WHERE name = 'Sony';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Return the founder of Sony. [/INST]
SELECT founder FROM manufacturers WHERE name = 'Sony';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Where is the headquarter of the company founded by James? [/INST]
SELECT headquarter FROM manufacturers WHERE founder = 'James';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the headquarter of the company whose founder is James? [/INST]
SELECT headquarter FROM manufacturers WHERE founder = 'James';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find all manufacturers' names and their headquarters, sorted by the ones with highest re...
SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names and headquarters of all manufacturers, ordered by revenue descending?...
SELECT name , headquarter FROM manufacturers ORDER BY revenue DESC;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the average, maximum and total revenues of all companies? [/INST]
SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Return the average, maximum, and total revenues across all manufacturers. [/INST]
SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many companies were created by Andy? [/INST]
SELECT count(*) FROM manufacturers WHERE founder = 'Andy';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Return the number of companies created by Andy. [/INST]
SELECT count(*) FROM manufacturers WHERE founder = 'Andy';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the total revenue created by the companies whose headquarter is located at Austin. ...
SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the sum of revenue from companies with headquarters in Austin? [/INST]
SELECT sum(revenue) FROM manufacturers WHERE headquarter = 'Austin';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the different cities listed? [/INST]
SELECT DISTINCT headquarter FROM manufacturers;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Give the distinct headquarters of manufacturers. [/INST]
SELECT DISTINCT headquarter FROM manufacturers;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the number of manufactures that are based in Tokyo or Beijing. [/INST]
SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many manufacturers have headquarters in either Tokyo or Beijing? [/INST]
SELECT count(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the founder of the company whose name begins with the letter 'S'. [/INST]
SELECT founder FROM manufacturers WHERE name LIKE 'S%';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Who is the founders of companies whose first letter is S? [/INST]
SELECT founder FROM manufacturers WHERE name LIKE 'S%';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name of companies whose revenue is between 100 and 150. [/INST]
SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of companies with revenue between 100 and 150? [/INST]
SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the total revenue of all companies whose main office is at Tokyo or Taiwan? [/IN...
SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Return the total revenue of companies with headquarters in Tokyo or Taiwan. [/INST]
SELECT sum(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name of product that is produced by both companies Creative Labs and Sony. [/IN...
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';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of products produced by both Creative Labs and Sony? [/INST]
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';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: 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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: 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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name, headquarter and revenue of all manufacturers sorted by their revenue in t...
SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names, headquarters and revenues for manufacturers, sorted by revenue desce...
SELECT name , headquarter , revenue FROM manufacturers ORDER BY revenue DESC;