Question:
What are the different stage positions for all musicians whose first name is 'Solveig'?
Additional table information: table: music_2

Answer: SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = 'Solveig'


Question:
How many songs are there?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM Songs


Question:
Count the number of songs.
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM Songs


Question:
Find all the songs performed by artist with last name 'Heilo'
Additional table information: table: music_2

Answer: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = 'Heilo'


Question:
What are the names of the songs by the artist whose last name is 'Heilo'?
Additional table information: table: music_2

Answer: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = 'Heilo'


Question:
Hom many musicians performed in the song 'Flash'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = 'Flash'


Question:
How many musicians play in the song 'Flash'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = 'Flash'


Question:
Find all the songs produced by artists with first name 'Marianne'.
Additional table information: table: music_2

Answer: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = 'Marianne'


Question:
What are the names of all songs produced by the artist with the first name 'Marianne'?
Additional table information: table: music_2

Answer: SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = 'Marianne'


Question:
Who performed the song named 'Badlands'? Show the first name and the last name.
Additional table information: table: music_2

Answer: SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands'


Question:
What are the first and last names of the artist who perfomed the song 'Badlands'?
Additional table information: table: music_2

Answer: SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands'


Question:
Who is performing in the back stage position for the song 'Badlands'? Show the first name and the last name.
Additional table information: table: music_2

Answer: SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands' AND T1.StagePosition = 'back'


Question:
What are the first and last names of the performer who was in the back stage position for the song 'Badlands'?
Additional table information: table: music_2

Answer: SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands' AND T1.StagePosition = 'back'


Question:
How many unique labels are there for albums?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT label) FROM albums


Question:
What are the unique labels for the albums?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT label) FROM albums


Question:
What is the label that has the most albums?
Additional table information: table: music_2

Answer: SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the label with the most albums?
Additional table information: table: music_2

Answer: SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the last name of the musician that have produced the most number of songs?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the last name of the musician who was in the most songs?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the last name of the musician that has been at the back position the most?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = 'back' GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the last name of the musicians who has played back position the most?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = 'back' GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
Find all the songs whose name contains the word 'the'.
Additional table information: table: music_2

Answer: SELECT title FROM songs WHERE title LIKE '% the %'


Question:
What are the names of the songs whose title has the word 'the'?
Additional table information: table: music_2

Answer: SELECT title FROM songs WHERE title LIKE '% the %'


Question:
What are all the instruments used?
Additional table information: table: music_2

Answer: SELECT DISTINCT instrument FROM Instruments


Question:
What are the different instruments listed in the database?
Additional table information: table: music_2

Answer: SELECT DISTINCT instrument FROM Instruments


Question:
What instrument did the musician with last name 'Heilo' use in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = 'Heilo' AND T3.title = 'Le Pop'


Question:
What instruments did the musician with the last name 'Heilo' play in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = 'Heilo' AND T3.title = 'Le Pop'


Question:
What is the most used instrument?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1


Question:
What instrument is used the most?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1


Question:
How many songs have used the instrument 'drums'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM instruments WHERE instrument = 'drums'


Question:
How many songs use drums as an instrument?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM instruments WHERE instrument = 'drums'


Question:
What instruments does the the song 'Le Pop' use?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
What are the instruments are used in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
How many instruments does the song 'Le Pop' use?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
How many different instruments are used in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
How many instrument does the musician with last name 'Heilo' use?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = 'Heilo'


Question:
How many different instruments does the musician with the last name 'Heilo' use?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = 'Heilo'


Question:
Find all the instruments ever used by the musician with last name 'Heilo'?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = 'Heilo'


Question:
What are all the instruments used by the musician with the last name 'Heilo'?
Additional table information: table: music_2

Answer: SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = 'Heilo'


Question:
Which song has the most vocals?
Additional table information: table: music_2

Answer: 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


Question:
What is the song with the most vocals?
Additional table information: table: music_2

Answer: 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


Question:
Which vocal type is the most frequently appearring type?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the type of vocables that appears most frequently?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1


Question:
Which vocal type has the band mate with last name 'Heilo' played the most?
Additional table information: table: music_2

Answer: 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


Question:
What is the type of vocals that the band member with the last name 'Heilo' played the most?
Additional table information: table: music_2

Answer: 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


Question:
What are the vocal types used in song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
What are the types of vocals used in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
Find the number of vocal types used in song 'Demon Kitty Rag'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Demon Kitty Rag'


Question:
What are the types of vocals used in the song 'Demon Kitty Rag'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Demon Kitty Rag'


Question:
How many songs have a lead vocal?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'lead'


Question:
How many songs have vocals of type lead?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'lead'


Question:
Which vocal type did the musician with first name 'Solveig' played in the song with title 'A Bar in Amsterdam'?
Additional table information: table: music_2

Answer: 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'


Question:
What are the types of vocals that the musician with the first name 'Solveig' played in the song 'A Bar in Amsterdam'?
Additional table information: table: music_2

Answer: 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'


Question:
Find all the songs that do not have a lead vocal.
Additional table information: table: music_2

Answer: 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'


Question:
What are the names of the songs without a lead vocal?
Additional table information: table: music_2

Answer: 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'


Question:
Find all the vocal types.
Additional table information: table: music_2

Answer: SELECT DISTINCT TYPE FROM vocals


Question:
What are the different types of vocals?
Additional table information: table: music_2

Answer: SELECT DISTINCT TYPE FROM vocals


Question:
What are the albums produced in year 2010?
Additional table information: table: music_2

Answer: SELECT * FROM Albums WHERE YEAR = 2010


Question:
What information is there on albums from 2010?
Additional table information: table: music_2

Answer: SELECT * FROM Albums WHERE YEAR = 2010


Question:
Who performed the song named 'Le Pop'?
Additional table information: table: music_2

Answer: 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'


Question:
What is the first and last name of artist who performed 'Le Pop'?
Additional table information: table: music_2

Answer: 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'


Question:
What is the last name of the musician that have produced the most songs?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the last name of the artist who sang the most songs?
Additional table information: table: music_2

Answer: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1


Question:
What instrument did the musician with last name 'Heilo' use in the song 'Badlands'?
Additional table information: table: music_2

Answer: 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'


Question:
What instruments did the musician with the last name 'Heilo' play in 'Badlands'?
Additional table information: table: music_2

Answer: 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'


Question:
How many instruments does the song 'Badlands' use?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'


Question:
How many different instruments are used in the song 'Badlands'?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'


Question:
What are the vocal types used in song 'Badlands'?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'


Question:
What types of vocals are used in the song 'Badlands'?
Additional table information: table: music_2

Answer: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'


Question:
Find the number of vocal types used in song 'Le Pop'
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
How many vocal types are used in the song 'Le Pop'?
Additional table information: table: music_2

Answer: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'


Question:
How many songs have a shared vocal?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'shared'


Question:
How many different songs have shared vocals?
Additional table information: table: music_2

Answer: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'shared'


Question:
Find all the songs that do not have a back vocal.
Additional table information: table: music_2

Answer: 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'


Question:
What are the different names of all songs without back vocals?
Additional table information: table: music_2

Answer: 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'


Question:
Which vocal type has the band mate with first name 'Solveig' played the most?
Additional table information: table: music_2

Answer: 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


Question:
What are the types of vocals that the band member with the first name 'Solveig' played the most?
Additional table information: table: music_2

Answer: 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


Question:
Which vocal type did the musician with last name 'Heilo' played in the song with title 'Der Kapitan'?
Additional table information: table: music_2

Answer: 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'


Question:
What are the types of vocals that the musician with the last name 'Heilo' played in 'Der Kapitan'?
Additional table information: table: music_2

Answer: 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'


Question:
Find the first name of the band mate that has performed in most songs.
Additional table information: table: music_2

Answer: 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


Question:
What is the first name of the band mate who perfomed in the most songs?
Additional table information: table: music_2

Answer: 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


Question:
Which vocal type has the band mate with first name 'Marianne' played the most?
Additional table information: table: music_2

Answer: 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


Question:
What is the vocal type of the band mate whose first name is 'Marianne' played the most?
Additional table information: table: music_2

Answer: 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


Question:
Who is performing in the back stage position for the song 'Der Kapitan'? Show the first name and last name.
Additional table information: table: music_2

Answer: 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'


Question:
What is the first and last name of the artist who performed back stage for the song 'Der Kapitan'?
Additional table information: table: music_2

Answer: 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'


Question:
Find the name of songs that does not have a back vocal.
Additional table information: table: music_2

Answer: 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'


Question:
What are the names of the songs that do not have back vocals?
Additional table information: table: music_2

Answer: 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'


Question:
What are the songs in album 'A Kiss Before You Go: Live in Hamburg'?
Additional table information: table: music_2

Answer: 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'


Question:
What are the song titles on the album 'A Kiss Before You Go: Live in Hamburg'?
Additional table information: table: music_2

Answer: 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'


Question:
What are all the songs in albums under label 'Universal Music Group'?
Additional table information: table: music_2

Answer: 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'


Question:
What are the names of all the songs whose album is under the label of 'Universal Music Group'?
Additional table information: table: music_2

Answer: 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'


Question:
Find the number of songs in all the studio albums.
Additional table information: table: music_2

Answer: 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'


Question:
How many songs appear in studio albums?
Additional table information: table: music_2

Answer: 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'


Question:
Who is the founder of Sony?
Additional table information: table: manufactory_1

Answer: SELECT founder FROM manufacturers WHERE name = 'Sony'


Question:
Return the founder of Sony.
Additional table information: table: manufactory_1

Answer: SELECT founder FROM manufacturers WHERE name = 'Sony'


Question:
Where is the headquarter of the company founded by James?
Additional table information: table: manufactory_1

Answer: SELECT headquarter FROM manufacturers WHERE founder = 'James'


Question:
What is the headquarter of the company whose founder is James?
Additional table information: table: manufactory_1

Answer: SELECT headquarter FROM manufacturers WHERE founder = 'James'


Question:
Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC


Question:
What are the names and headquarters of all manufacturers, ordered by revenue descending?
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC


Question:
What are the average, maximum and total revenues of all companies?
Additional table information: table: manufactory_1

Answer: SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers


Question:
Return the average, maximum, and total revenues across all manufacturers.
Additional table information: table: manufactory_1

Answer: SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers


Question:
How many companies were created by Andy?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy'


Question:
Return the number of companies created by Andy.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy'


Question:
Find the total revenue created by the companies whose headquarter is located at Austin.
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'


Question:
What is the sum of revenue from companies with headquarters in Austin?
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'


Question:
What are the different cities listed?
Additional table information: table: manufactory_1

Answer: SELECT DISTINCT headquarter FROM manufacturers


Question:
Give the distinct headquarters of manufacturers.
Additional table information: table: manufactory_1

Answer: SELECT DISTINCT headquarter FROM manufacturers


Question:
Find the number of manufactures that are based in Tokyo or Beijing.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'


Question:
How many manufacturers have headquarters in either Tokyo or Beijing?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'


Question:
Find the founder of the company whose name begins with the letter 'S'.
Additional table information: table: manufactory_1

Answer: SELECT founder FROM manufacturers WHERE name LIKE 'S%'


Question:
Who is the founders of companies whose first letter is S?
Additional table information: table: manufactory_1

Answer: SELECT founder FROM manufacturers WHERE name LIKE 'S%'


Question:
Find the name of companies whose revenue is between 100 and 150.
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150


Question:
What are the names of companies with revenue between 100 and 150?
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150


Question:
What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'


Question:
Return the total revenue of companies with headquarters in Tokyo or Taiwan.
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'


Question:
Find the name of product that is produced by both companies Creative Labs and Sony.
Additional table information: table: manufactory_1

Answer: 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'


Question:
What are the names of products produced by both Creative Labs and Sony?
Additional table information: table: manufactory_1

Answer: 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'


Question:
Find the name, headquarter and founder of the manufacturer that has the highest revenue.
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1


Question:
What are the names, headquarters and founders of the company with the highest revenue?
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1


Question:
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC


Question:
What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
Additional table information: table: manufactory_1

Answer: SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC


Question:
Find the name of companies whose revenue is greater than the average revenue of all companies.
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)


Question:
What are the names of manufacturers with revenue greater than the average of all revenues?
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)


Question:
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')


Question:
What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')


Question:
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')


Question:
What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')


Question:
Find the total revenue of companies of each founder.
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder


Question:
What is the total revenue of companies started by founder?
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder


Question:
Find the name and revenue of the company that earns the highest revenue in each city.
Additional table information: table: manufactory_1

Answer: SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter


Question:
What are the names and revenues of the companies with the highest revenues in each headquarter city?
Additional table information: table: manufactory_1

Answer: SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter


Question:
Find the total revenue for each manufacturer.
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue), name FROM manufacturers GROUP BY name


Question:
What is the total revenue of each manufacturer?
Additional table information: table: manufactory_1

Answer: SELECT SUM(revenue), name FROM manufacturers GROUP BY name


Question:
Find the average prices of all products from each manufacture, and list each company's name.
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
What are the average prices of products for each manufacturer?
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
Find the number of different products that are produced by companies at different headquarter cities.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.Headquarter


Question:
How many different products are produced in each headquarter city?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.Headquarter


Question:
Find number of products which Sony does not make.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony')


Question:
How many products are not made by Sony?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony')


Question:
Find the name of companies that do not make DVD drive.
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T1.name = 'DVD drive'


Question:
What are the names of companies that do not make DVD drives?
Additional table information: table: manufactory_1

Answer: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T1.name = 'DVD drive'


Question:
Find the number of products for each manufacturer, showing the name of each company.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
How many products are there for each manufacturer?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
Select the names of all the products in the store.
Additional table information: table: manufactory_1

Answer: SELECT Name FROM Products


Question:
What are the names of all products?
Additional table information: table: manufactory_1

Answer: SELECT Name FROM Products


Question:
Select the names and the prices of all the products in the store.
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM products


Question:
What are the names and prices of all products in the store?
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM products


Question:
Select the name of the products with a price less than or equal to $200.
Additional table information: table: manufactory_1

Answer: SELECT name FROM products WHERE price <= 200


Question:
What are the names of products with price at most 200?
Additional table information: table: manufactory_1

Answer: SELECT name FROM products WHERE price <= 200


Question:
Find all information of all the products with a price between $60 and $120.
Additional table information: table: manufactory_1

Answer: SELECT * FROM products WHERE price BETWEEN 60 AND 120


Question:
What is all the information of all the products that have a price between 60 and 120?
Additional table information: table: manufactory_1

Answer: SELECT * FROM products WHERE price BETWEEN 60 AND 120


Question:
Compute the average price of all the products.
Additional table information: table: manufactory_1

Answer: SELECT AVG(price) FROM products


Question:
What is the average price across all products?
Additional table information: table: manufactory_1

Answer: SELECT AVG(price) FROM products


Question:
Compute the average price of all products with manufacturer code equal to 2.
Additional table information: table: manufactory_1

Answer: SELECT AVG(price) FROM products WHERE manufacturer = 2


Question:
What is the average price of products with manufacturer codes equal to 2?
Additional table information: table: manufactory_1

Answer: SELECT AVG(price) FROM products WHERE manufacturer = 2


Question:
Compute the number of products with a price larger than or equal to $180.
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM products WHERE price >= 180


Question:
How many products have prices of at least 180?
Additional table information: table: manufactory_1

Answer: SELECT COUNT(*) FROM products WHERE price >= 180


Question:
Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name  (in ascending order).
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name ASC NULLS FIRST


Question:
What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name ASC NULLS FIRST


Question:
Select all the data from the products and each product's manufacturer.
Additional table information: table: manufactory_1

Answer: SELECT * FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code


Question:
What is all the product data, as well as  each product's manufacturer?
Additional table information: table: manufactory_1

Answer: SELECT * FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code


Question:
Select the average price of each manufacturer's products, showing only the manufacturer's code.
Additional table information: table: manufactory_1

Answer: SELECT AVG(Price), manufacturer FROM Products GROUP BY manufacturer


Question:
What are the average prices of products, grouped by manufacturer code?
Additional table information: table: manufactory_1

Answer: SELECT AVG(Price), manufacturer FROM Products GROUP BY manufacturer


Question:
Select the average price of each manufacturer's products, showing the manufacturer's name.
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
What are the average prices of products, grouped by manufacturer name?
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
Select the names of manufacturer whose products have an average price higher than or equal to $150.
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150


Question:
What are the names and average prices of products for manufacturers whose products cost on average 150 or more?
Additional table information: table: manufactory_1

Answer: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150


Question:
Select the name and price of the cheapest product.
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM Products ORDER BY price ASC NULLS FIRST LIMIT 1


Question:
What is the name and price of the cheapest product?
Additional table information: table: manufactory_1

Answer: SELECT name, price FROM Products ORDER BY price ASC NULLS FIRST LIMIT 1


Question:
Select the name of each manufacturer along with the name and price of its most expensive product.
Additional table information: table: manufactory_1

Answer: SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
For each manufacturer name, what are the names and prices of their most expensive product?
Additional table information: table: manufactory_1

Answer: SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name


Question:
Select the code of the product that is cheapest in each product category.
Additional table information: table: manufactory_1

Answer: SELECT code, name, MIN(price) FROM products GROUP BY name


Question:
What are the codes and names of the cheapest products in each category?
Additional table information: table: manufactory_1

Answer: SELECT code, name, MIN(price) FROM products GROUP BY name


Question:
What is the id of the problem log that is created most recently?
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1


Question:
Which problem log was created most recently? Give me the log id.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1


Question:
What is the oldest log id and its corresponding problem id?
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date NULLS FIRST LIMIT 1


Question:
Find the oldest log id and its corresponding problem id.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date NULLS FIRST LIMIT 1


Question:
Find all the ids and dates of the logs for the problem whose id is 10.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10


Question:
For the problem with id 10, return the ids and dates of its problem logs.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10


Question:
List all the log ids and their descriptions from the problem logs.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, log_entry_description FROM problem_log


Question:
What are the log id and entry description of each problem?
Additional table information: table: tracking_software_problems

Answer: SELECT problem_log_id, log_entry_description FROM problem_log


Question:
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1


Question:
Which staff members are assigned to the problem with id 1? Give me their first and last names.
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1


Question:
List the problem id and log id which are assigned to the staff named Rylan Homenick.
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = 'Rylan' AND T1.staff_last_name = 'Homenick'


Question:
Which problem id and log id are assigned to the staff named Rylan Homenick?
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = 'Rylan' AND T1.staff_last_name = 'Homenick'


Question:
How many problems are there for product voluptatem?
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = 'voluptatem'


Question:
How many problems did the product called 'voluptatem' have in record?
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = 'voluptatem'


Question:
How many problems does the product with the most problems have? List the number of the problems and product name.
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1


Question:
Which product has the most problems? Give me the number of problems and the product name.
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1


Question:
Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop'


Question:
Which problems are reported by the staff with first name 'Christop'? Show the descriptions of the problems.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop'


Question:
Find the ids of the problems that are reported by the staff whose last name is Bosco.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = 'Bosco'


Question:
Which problems are reported by the staff with last name 'Bosco'? Show the ids of the problems.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = 'Bosco'


Question:
What are the ids of the problems which are reported after 1978-06-26?
Additional table information: table: tracking_software_problems

Answer: SELECT problem_id FROM problems WHERE date_problem_reported > '1978-06-26'


Question:
Find the ids of the problems reported after 1978-06-26.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_id FROM problems WHERE date_problem_reported > '1978-06-26'


Question:
What are the ids of the problems which are reported before 1978-06-26?
Additional table information: table: tracking_software_problems

Answer: SELECT problem_id FROM problems WHERE date_problem_reported < '1978-06-26'


Question:
Which problems are reported before 1978-06-26? Give me the ids of the problems.
Additional table information: table: tracking_software_problems

Answer: SELECT problem_id FROM problems WHERE date_problem_reported < '1978-06-26'


Question:
For each product which has problems, what are the number of problems and the product id?
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id


Question:
For each product with some problems, list the count of problems and the product id.
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id


Question:
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > '1986-11-13' GROUP BY T2.product_id


Question:
What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.
Additional table information: table: tracking_software_problems

Answer: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > '1986-11-13' GROUP BY T2.product_id


Question:
List the names of all the distinct product names in alphabetical order?
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT product_name FROM product ORDER BY product_name NULLS FIRST


Question:
Sort all the distinct product names in alphabetical order.
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT product_name FROM product ORDER BY product_name NULLS FIRST


Question:
List all the distinct product names ordered by product id?
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT product_name FROM product ORDER BY product_id NULLS FIRST


Question:
What is the list of distinct product names sorted by product id?
Additional table information: table: tracking_software_problems

Answer: SELECT DISTINCT product_name FROM product ORDER BY product_id NULLS FIRST


Question:
What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
Additional table information: table: tracking_software_problems

Answer: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Dameon' AND T2.staff_last_name = 'Frami' UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Jolie' AND T2.staff_last_name = 'Weber'


Question:
Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
Additional table information: table: tracking_software_problems

Answer: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Dameon' AND T2.staff_last_name = 'Frami' UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Jolie' AND T2.staff_last_name = 'Weber'


Question:
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
Additional table information: table: tracking_software_problems

Answer: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop' AND T2.staff_last_name = 'Berge' INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Ashley' AND T2.staff_last_name = 'Medhurst'


Question:
For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.
Additional table information: table: tracking_software_problems

Answer: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop' AND T2.staff_last_name = 'Berge' INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Ashley' AND T2.staff_last_name = 'Medhurst'


Question:
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Lysanne' AND T4.staff_last_name = 'Turcotte')


Question:
Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Lysanne' AND T4.staff_last_name = 'Turcotte')


Question:
What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Rylan' AND T4.staff_last_name = 'Homenick')


Question:
Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Rylan' AND T4.staff_last_name = 'Homenick')


Question:
Find the top 3 products which have the largest number of problems?
Additional table information: table: tracking_software_problems

Answer: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3


Question:
What are the three products that have the most problems?s
Additional table information: table: tracking_software_problems

Answer: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3


Question:
List the ids of the problems from the product 'voluptatem' that are reported after 1995?
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'voluptatem' AND T1.date_problem_reported > '1995'


Question:
What are the ids of the problems that are from the product 'voluptatem' and are reported after 1995?
Additional table information: table: tracking_software_problems

Answer: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'voluptatem' AND T1.date_problem_reported > '1995'


Question:
Find the first and last name of the staff members who reported problems from the product 'rem' but not 'aut'?
Additional table information: table: tracking_software_problems

Answer: SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'rem' EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'aut'


Question:
Which staff members who reported problems from the product 'rem' but not 'aut'? Give me their first and last names.
Additional table information: table: tracking_software_problems

Answer: SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'rem' EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'aut'


Question:
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
Additional table information: table: tracking_software_problems

Answer: SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Lacey' AND T3.staff_last_name = 'Bosco' INTERSECT SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Kenton' AND T3.staff_last_name = 'Champlin'


Question:
Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?
Additional table information: table: tracking_software_problems

Answer: SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Lacey' AND T3.staff_last_name = 'Bosco' INTERSECT SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Kenton' AND T3.staff_last_name = 'Champlin'


Question:
How many branches where have more than average number of memberships are there?
Additional table information: table: shop_membership

Answer: SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)


Question:
What is the number of branches that have more than the average number of memberships?
Additional table information: table: shop_membership

Answer: SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)


Question:
Show name, address road, and city for all branches sorted by open year.
Additional table information: table: shop_membership

Answer: SELECT name, address_road, city FROM branch ORDER BY open_year NULLS FIRST


Question:
What are the names, address roads, and cities of the branches ordered by opening year?
Additional table information: table: shop_membership

Answer: SELECT name, address_road, city FROM branch ORDER BY open_year NULLS FIRST


Question:
What are names for top three branches with most number of membership?
Additional table information: table: shop_membership

Answer: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3


Question:
What are the names for the 3 branches that have the most memberships?
Additional table information: table: shop_membership

Answer: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3


Question:
Show all distinct city where branches with at least 100 memberships are located.
Additional table information: table: shop_membership

Answer: SELECT DISTINCT city FROM branch WHERE membership_amount >= 100


Question:
What are the different cities that have more than 100 memberships?
Additional table information: table: shop_membership

Answer: SELECT DISTINCT city FROM branch WHERE membership_amount >= 100


Question:
List all open years when at least two shops are opened.
Additional table information: table: shop_membership

Answer: SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2


Question:
What are the opening years in which at least two shops opened?
Additional table information: table: shop_membership

Answer: SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2


Question:
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
Additional table information: table: shop_membership

Answer: SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'


Question:
What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
Additional table information: table: shop_membership

Answer: SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'


Question:
Show the city and the number of branches opened before 2010 for each city.
Additional table information: table: shop_membership

Answer: SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city


Question:
For each city, how many branches opened before 2010?
Additional table information: table: shop_membership

Answer: SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city


Question:
How many different levels do members have?
Additional table information: table: shop_membership

Answer: SELECT COUNT(DISTINCT LEVEL) FROM member


Question:
What are the different membership levels?
Additional table information: table: shop_membership

Answer: SELECT COUNT(DISTINCT LEVEL) FROM member


Question:
Show card number, name, and hometown for all members in a descending order of level.
Additional table information: table: shop_membership

Answer: SELECT card_number, name, hometown FROM member ORDER BY LEVEL DESC


Question:
What are the card numbers, names, and hometowns of every member ordered by descending level?
Additional table information: table: shop_membership

Answer: SELECT card_number, name, hometown FROM member ORDER BY LEVEL DESC


Question:
Show the membership level with most number of members.
Additional table information: table: shop_membership

Answer: SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the membership level with the most people?
Additional table information: table: shop_membership

Answer: SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY COUNT(*) DESC LIMIT 1


Question:
Show all member names and registered branch names sorted by register year.
Additional table information: table: shop_membership

Answer: SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year NULLS FIRST


Question:
What are the names of the members and branches at which they are registered sorted by year of registration?
Additional table information: table: shop_membership

Answer: SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year NULLS FIRST


Question:
Show all branch names with the number of members in each branch registered after 2015.
Additional table information: table: shop_membership

Answer: SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id


Question:
For each branch id, what are the names of the branches that were registered after 2015?
Additional table information: table: shop_membership

Answer: SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id


Question:
Show member names without any registered branch.
Additional table information: table: shop_membership

Answer: SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)


Question:
What are the names of the members that have never registered at any branch?
Additional table information: table: shop_membership

Answer: SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)


Question:
List the branch name and city without any registered members.
Additional table information: table: shop_membership

Answer: SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)


Question:
What are the names and cities of the branches that do not have any registered members?
Additional table information: table: shop_membership

Answer: SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)


Question:
What is the name and open year for the branch with most number of memberships registered in 2016?
Additional table information: table: shop_membership

Answer: SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the name and opening year for the branch that registered the most members in 2016?
Additional table information: table: shop_membership

Answer: SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1


Question:
Show the member name and hometown who registered a branch in 2016.
Additional table information: table: shop_membership

Answer: SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016


Question:
What are the member names and hometowns of those who registered at a branch in 2016?
Additional table information: table: shop_membership

Answer: SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016


Question:
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
Additional table information: table: shop_membership

Answer: SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100


Question:
What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?
Additional table information: table: shop_membership

Answer: SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100


Question:
Show all cities without a branch having more than 100 memberships.
Additional table information: table: shop_membership

Answer: SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100


Question:
What are the cities that do not have any branches with more than 100 members?
Additional table information: table: shop_membership

Answer: SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100


Question:
What is the sum of total pounds of purchase in year 2018 for all branches in London?
Additional table information: table: shop_membership

Answer: SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018


Question:
How many total pounds were purchased in the year 2018 at all London branches?
Additional table information: table: shop_membership

Answer: SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018


Question:
What is the total number of purchases for members with level 6?
Additional table information: table: shop_membership

Answer: SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6


Question:
What are the total purchases for members rated at level 6?
Additional table information: table: shop_membership

Answer: SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6


Question:
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
Additional table information: table: shop_membership

Answer: SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram ,  Georgia'


Question:
What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?
Additional table information: table: shop_membership

Answer: SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville ,  Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram ,  Georgia'


Question:
list the card number of all members whose hometown address includes word 'Kentucky'.
Additional table information: table: shop_membership

Answer: SELECT card_number FROM member WHERE Hometown LIKE '%Kentucky%'


Question:
What are the card numbers of members from Kentucky?
Additional table information: table: shop_membership

Answer: SELECT card_number FROM member WHERE Hometown LIKE '%Kentucky%'


Question:
Find the number of students in total.
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT


Question:
How many students are there in total?
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT


Question:
Find the number of voting records in total.
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM VOTING_RECORD


Question:
How many voting records do we have?
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM VOTING_RECORD


Question:
Find the distinct number of president votes.
Additional table information: table: voter_2

Answer: SELECT COUNT(DISTINCT President_Vote) FROM VOTING_RECORD


Question:
How many distinct president votes are recorded?
Additional table information: table: voter_2

Answer: SELECT COUNT(DISTINCT President_Vote) FROM VOTING_RECORD


Question:
Find the maximum age of all the students.
Additional table information: table: voter_2

Answer: SELECT MAX(Age) FROM STUDENT


Question:
What is the oldest age among the students?
Additional table information: table: voter_2

Answer: SELECT MAX(Age) FROM STUDENT


Question:
Find the last names of students with major 50.
Additional table information: table: voter_2

Answer: SELECT LName FROM STUDENT WHERE Major = 50


Question:
What are the last names of students studying major 50?
Additional table information: table: voter_2

Answer: SELECT LName FROM STUDENT WHERE Major = 50


Question:
Find the first names of students with age above 22.
Additional table information: table: voter_2

Answer: SELECT Fname FROM STUDENT WHERE Age > 22


Question:
What are the first names of all the students aged above 22?
Additional table information: table: voter_2

Answer: SELECT Fname FROM STUDENT WHERE Age > 22


Question:
What are the majors of male (sex is M) students?
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT WHERE Sex = 'M'


Question:
List the major of each male student.
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT WHERE Sex = 'M'


Question:
What is the average age of female (sex is F) students?
Additional table information: table: voter_2

Answer: SELECT AVG(Age) FROM STUDENT WHERE Sex = 'F'


Question:
Find the average age of female students.
Additional table information: table: voter_2

Answer: SELECT AVG(Age) FROM STUDENT WHERE Sex = 'F'


Question:
What are the maximum and minimum age of students with major 600?
Additional table information: table: voter_2

Answer: SELECT MAX(Age), MIN(Age) FROM STUDENT WHERE Major = 600


Question:
Tell me the ages of the oldest and youngest students studying major 600.
Additional table information: table: voter_2

Answer: SELECT MAX(Age), MIN(Age) FROM STUDENT WHERE Major = 600


Question:
Who are the advisors for students that live in a city with city code 'BAL'?
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT WHERE city_code = 'BAL'


Question:
Show the advisors of the students whose city of residence has city code 'BAL'.
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT WHERE city_code = 'BAL'


Question:
What are the distinct secretary votes in the fall election cycle?
Additional table information: table: voter_2

Answer: SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = 'Fall'


Question:
Return all the distinct secretary votes made in the fall election cycle.
Additional table information: table: voter_2

Answer: SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = 'Fall'


Question:
What are the distinct president votes on 08/30/2015?
Additional table information: table: voter_2

Answer: SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = '08/30/2015'


Question:
Show all the distinct president votes made on 08/30/2015.
Additional table information: table: voter_2

Answer: SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = '08/30/2015'


Question:
Report the distinct registration date and the election cycle.
Additional table information: table: voter_2

Answer: SELECT DISTINCT Registration_Date, Election_Cycle FROM VOTING_RECORD


Question:
What are the distinct registration dates and the election cycles?
Additional table information: table: voter_2

Answer: SELECT DISTINCT Registration_Date, Election_Cycle FROM VOTING_RECORD


Question:
Report the distinct president vote and the vice president vote.
Additional table information: table: voter_2

Answer: SELECT DISTINCT President_Vote, VICE_President_Vote FROM VOTING_RECORD


Question:
List all the distinct president votes and the vice president votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT President_Vote, VICE_President_Vote FROM VOTING_RECORD


Question:
Find the distinct last names of the students who have class president votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE


Question:
What are the distinct last names of the students who have class president votes?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE


Question:
Find the distinct first names of the students who have class senator votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE


Question:
What are the distinct first names of the students who have class president votes?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE


Question:
Find the distinct ages of students who have secretary votes in the fall election cycle.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = 'Fall'


Question:
What are the distinct ages of students who have secretary votes in the fall election cycle?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = 'Fall'


Question:
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = 'Spring'


Question:
Who served as an advisor for students who have treasurer votes in the spring election cycle?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = 'Spring'


Question:
Find the distinct majors of students who have treasurer votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote


Question:
What are the distinct majors that students with treasurer votes are studying?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote


Question:
Find the first and last names of all the female (sex is F) students who have president votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = 'F'


Question:
What are the first and last names of all the female students who have president votes?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = 'F'


Question:
Find the first and last name of all the students of age 18 who have vice president votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18


Question:
What are the first names and last names of the students who are 18 years old and have vice president votes.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18


Question:
How many male (sex is M) students have class senator votes in the fall election cycle?
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = 'M' AND T2.Election_Cycle = 'Fall'


Question:
Count the number of male students who had class senator votes in the fall election cycle.
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = 'M' AND T2.Election_Cycle = 'Fall'


Question:
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring'


Question:
Which students live in the city with code 'NYC' and have class senator votes in the spring election cycle? Count the numbers.
Additional table information: table: voter_2

Answer: SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring'


Question:
Find the average age of students who live in the city with code 'NYC' and have secretary votes in the spring election cycle.
Additional table information: table: voter_2

Answer: SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring'


Question:
What is the average age of students who have city code 'NYC' and have secretary votes for the spring election cycle?
Additional table information: table: voter_2

Answer: SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring'


Question:
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
Additional table information: table: voter_2

Answer: SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = 'F' AND T2.Election_Cycle = 'Spring'


Question:
What is the average age of the female students with secretary votes in the spring election cycle?
Additional table information: table: voter_2

Answer: SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = 'F' AND T2.Election_Cycle = 'Spring'


Question:
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = 'PIT'


Question:
What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = 'PIT'


Question:
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = '2192'


Question:
What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = '2192'


Question:
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = '8741'


Question:
What are the distinct last names of the students who have president votes and have 8741 as the advisor?
Additional table information: table: voter_2

Answer: SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = '8741'


Question:
For each advisor, report the total number of students advised by him or her.
Additional table information: table: voter_2

Answer: SELECT Advisor, COUNT(*) FROM STUDENT GROUP BY Advisor


Question:
How many students does each advisor have?
Additional table information: table: voter_2

Answer: SELECT Advisor, COUNT(*) FROM STUDENT GROUP BY Advisor


Question:
Report all advisors that advise more than 2 students.
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2


Question:
Which advisors have more than two students?
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2


Question:
Report all majors that have less than 3 students.
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3


Question:
What are the majors only less than three students are studying?
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3


Question:
For each election cycle, report the number of voting records.
Additional table information: table: voter_2

Answer: SELECT Election_Cycle, COUNT(*) FROM VOTING_RECORD GROUP BY Election_Cycle


Question:
Count the number of voting records for each election cycle.
Additional table information: table: voter_2

Answer: SELECT Election_Cycle, COUNT(*) FROM VOTING_RECORD GROUP BY Election_Cycle


Question:
Which major has the most students?
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1


Question:
Find the major that is studied by the largest number of students.
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the most common major among female (sex is F) students?
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT WHERE Sex = 'F' GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1


Question:
Find the major that is studied by the most female students.
Additional table information: table: voter_2

Answer: SELECT Major FROM STUDENT WHERE Sex = 'F' GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1


Question:
What is the city_code of the city that the most students live in?
Additional table information: table: voter_2

Answer: SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1


Question:
Return the code of the city that has the most students.
Additional table information: table: voter_2

Answer: SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1


Question:
Report the distinct advisors who have more than 2 students.
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2


Question:
Which advisors are advising more than 2 students?
Additional table information: table: voter_2

Answer: SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2


Question:
How many products are there?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products


Question:
Count the number of products.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products


Question:
How many colors are there?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM ref_colors


Question:
Count the number of colors.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM ref_colors


Question:
How many characteristics are there?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM CHARACTERISTICS


Question:
Count the number of characteristics.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM CHARACTERISTICS


Question:
What are the names and buying prices of all the products?
Additional table information: table: products_gen_characteristics

Answer: SELECT product_name, typical_buying_price FROM products


Question:
Return the names and typical buying prices for all products.
Additional table information: table: products_gen_characteristics

Answer: SELECT product_name, typical_buying_price FROM products


Question:
List the description of all the colors.
Additional table information: table: products_gen_characteristics

Answer: SELECT color_description FROM ref_colors


Question:
What are the descriptions for each color?
Additional table information: table: products_gen_characteristics

Answer: SELECT color_description FROM ref_colors


Question:
Find the names of all the product characteristics.
Additional table information: table: products_gen_characteristics

Answer: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS


Question:
What are the different names of the product characteristics?
Additional table information: table: products_gen_characteristics

Answer: SELECT DISTINCT characteristic_name FROM CHARACTERISTICS


Question:
What are the names of products with category 'Spices'?
Additional table information: table: products_gen_characteristics

Answer: SELECT product_name FROM products WHERE product_category_code = 'Spices'


Question:
Return the names of products in the category 'Spices'.
Additional table information: table: products_gen_characteristics

Answer: SELECT product_name FROM products WHERE product_category_code = 'Spices'


Question:
List the names, color descriptions and product descriptions of products with category 'Herbs'.
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = 'Herbs'


Question:
What are the names, color descriptions, and product descriptions for products in the 'Herbs' category?
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = 'Herbs'


Question:
How many products are there under the category 'Seeds'?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products WHERE product_category_code = 'Seeds'


Question:
Count the number of products in the category 'Seeds'.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products WHERE product_category_code = 'Seeds'


Question:
Find the number of products with category 'Spices' and typically sold above 1000.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products WHERE product_category_code = 'Spices' AND typical_buying_price > 1000


Question:
How many products are in the 'Spices' category and have a typical price of over 1000?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products WHERE product_category_code = 'Spices' AND typical_buying_price > 1000


Question:
What is the category and typical buying price  of the product with name 'cumin'?
Additional table information: table: products_gen_characteristics

Answer: SELECT product_category_code, typical_buying_price FROM products WHERE product_name = 'cumin'


Question:
Return the category code and typical price of 'cumin'.
Additional table information: table: products_gen_characteristics

Answer: SELECT product_category_code, typical_buying_price FROM products WHERE product_name = 'cumin'


Question:
Which category does the product named 'flax' belong to?
Additional table information: table: products_gen_characteristics

Answer: SELECT product_category_code FROM products WHERE product_name = 'flax'


Question:
What is the code of the category that the product with the name 'flax' belongs to?
Additional table information: table: products_gen_characteristics

Answer: SELECT product_category_code FROM products WHERE product_name = 'flax'


Question:
What is the name of the product with the color description 'yellow'?
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'


Question:
Give the name of the products that have a color description 'yellow'.
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'


Question:
Find the category descriptions of the products whose descriptions include letter 't'.
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'


Question:
What are the descriptions of the categories that products with product descriptions that contain the letter t are in?
Additional table information: table: products_gen_characteristics

Answer: SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'


Question:
What is the color description of the product with name 'catnip'?
Additional table information: table: products_gen_characteristics

Answer: SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = 'catnip'


Question:
Give the color description for the product 'catnip'.
Additional table information: table: products_gen_characteristics

Answer: SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = 'catnip'


Question:
What is the color code and description of the product named 'chervil'?
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = 'chervil'


Question:
Return the color code and description for the product with the name 'chervil'.
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = 'chervil'


Question:
Find the id and color description of the products with at least 2 characteristics.
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2


Question:
What are the product ids and color descriptions for products with two or more characteristics?
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2


Question:
List all the product names with the color description 'white'.
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = 'white'


Question:
What are the names of products with 'white' as their color description?
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_name FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = 'white'


Question:
What are the name and typical buying and selling prices of the products that have color described as 'yellow'?
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_name, t1.typical_buying_price, t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = 'yellow'


Question:
Return the names and typical buying and selling prices for products that have 'yellow' as their color description.
Additional table information: table: products_gen_characteristics

Answer: SELECT t1.product_name, t1.typical_buying_price, t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = 'yellow'


Question:
How many characteristics does the product named 'sesame' have?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = 'sesame'


Question:
Count the number of characteristics the product 'sesame' has.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = 'sesame'


Question:
How many distinct characteristic names does the product 'cumin' have?
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = 'sesame'


Question:
Count the number of different characteristic names the product 'cumin' has.
Additional table information: table: products_gen_characteristics

Answer: SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = 'sesame'


Question:
What are all the characteristic names of product 'sesame'?
Additional table information: table: products_gen_characteristics

Answer: SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = 'sesame'


Question:
Return the characteristic names of the 'sesame' product.
Additional table information: table: products_gen_characteristics

Answer: SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = 'sesame'