1sf/bird-sql-train-with-schema huggingface dataset:
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Among the matches of Delhi Daredevils in 2009, what is the percentage of their matches won by wickets?
Evidence: Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))
SQL: SELECT CAST(SUM(CASE WHEN T3.Win_Type = 'wickets' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Win_Type) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner INNER JOIN Win_By AS T3 ON T2.Win_Type = T3.Win_Id WHERE T1.Team_Name = 'Delhi Daredevils'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What is the release title of the single that was released by Ron Hunt in 1979 that was downloaded 239 times?
Evidence: release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;
SQL: SELECT groupName FROM torrents WHERE artist LIKE 'ron hunt & ronnie g & the sm crew' AND groupYear = 1979 AND releaseType LIKE 'single' AND totalSnatched = 239
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many times was the album released by blowfly in 1980 downloaded?
Evidence: blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;
SQL: SELECT totalSnatched FROM torrents WHERE artist LIKE 'blowfly' AND groupYear = 1980
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What is the tag of the album with the highest amount of downloads?
Evidence: album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What are the top 5 tags with the highest amount of downloads?
Evidence: the highest amount of downloads refers to MAX(totalSnatched);
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched DESC LIMIT 5
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What is the release title of the single under the "funk" tag that was released the oldest?
Evidence: release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag LIKE 'funk' AND T1.releaseType = 'single' ORDER BY T1.groupYear LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Name all the release titles of the "ep's" under the alternative tag.
Evidence: release titles of the "ep's" refer to groupName where releaseType = 'ep';
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag LIKE 'alternative' AND T1.releaseType = 'ep'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What are the tags of the top 5 least downloaded live albums?
Evidence: least downloaded album refers to MIN(totalSnatched where releaseType = 'album');
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'album' ORDER BY T1.totalSnatched LIMIT 5
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What is the tag and the artist of the most downloaded single?
Evidence: the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');
SQL: SELECT T2.tag, T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'single' ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many releases are tagged "1980s"?
Evidence: tag = '1980s';
SQL: SELECT COUNT(id) FROM tags WHERE tag LIKE '1980s'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many times has the release "city funk" been downloaded?
Evidence: groupName = 'city funk'; downloaded refers to totalSnatched;
SQL: SELECT totalSnatched FROM torrents WHERE groupName LIKE 'city funk'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Please list the releases that have been downloaded for more than 20000 times.
Evidence: releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;
SQL: SELECT groupName FROM torrents WHERE totalSnatched > 20000
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What are the tags of the release "sugarhill gang"?
Evidence: release "sugarhill gang" refers to groupName = 'sugarhill gang';
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'sugarhill gang'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many tags does the release "city funk" have？
Evidence: release "city funk" refers to groupName = 'city funk';
SQL: SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'city funk'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Please list the titles of all the releases with the tag "1980s".
Evidence: titles refer to groupName;
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Among the releases with the tag "1980s", which one of them is the most downloaded? Please give its title.
Evidence: title refers to groupName; the most downloaded refers to MAX(totalSnatched);
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many releases by the artist michael jackson are tagged "pop"?
Evidence: tag = 'pop';
SQL: SELECT COUNT(T1.groupName) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'pop' AND T1.artist = 'michael jackson'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Among the releases that were released in 2000, how many of them were released as an album and tagged "pop"?
Evidence: groupYear = 2000; album refers to releaseType;
SQL: SELECT COUNT(T1.groupName) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'pop' AND T1.releaseType = 'album' AND T1.groupYear = 2000
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: What are the average download times for the a release tagged "1980s"?
Evidence: AVG(totalSnatched where tag = '1980s');
SQL: SELECT CAST(SUM(T1.totalSnatched) AS REAL) / COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Name the title of the top three releases with the highest number of downloads.
Evidence: title refers to groupName; the highest number of downloads refers to MAX(totalSnatched);
SQL: SELECT groupName FROM torrents ORDER BY totalSnatched DESC LIMIT 3
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Provide the name of the artist who released his or her Single-Table in 2012 with the highest number of downloads. Name the Single-Table title as well.
Evidence: title refers to groupName; the highest number of downloads refers to MAX(totalSnatched where groupYear = 2012 and releaseType = 'single');
SQL: SELECT artist, groupName FROM torrents WHERE groupYear = 2012 AND releaseType LIKE 'Single' ORDER BY totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many albums and Single-Tables were released by the artist named '50 cent' between 2010 and 2015?
Evidence: albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;
SQL: SELECT COUNT(id), ( SELECT COUNT(id) FROM torrents WHERE groupYear BETWEEN 2010 AND 2015 AND artist LIKE '50 cent' AND releaseType LIKE 'album' ) FROM torrents WHERE groupYear BETWEEN 2010 AND 2015 AND artist LIKE '50 cent' AND releaseType LIKE 'Single'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: An American rapper '2Pac' released his first solo album in 1991, how many years have passed until his next album was released?
Evidence: 2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);
SQL: SELECT ( SELECT groupYear FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'album' ORDER BY groupYear LIMIT 1, 1 ) - groupYear FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'album' AND groupYear = 1991
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Find the average number of downloads for Single-Tables released by '2Pac' between 2001 and 2013.
Evidence: 2Pac is an artist; releaseType = 'single'; between 2001 and 2013 refers to groupYear between 2001 and 2013; average number of downloads = AVG(totalSnatched);
SQL: SELECT AVG(totalSnatched) FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'Single' AND groupYear BETWEEN 2001 AND 2013
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Provide the title, release year and the tag associated with the live album that has the highest number of downloads?
Evidence: release year refers to groupYear; title of live album refers to groupName where releaseType = 'live album'; the highest number of downloads refers to MAX(totalSnatched);
SQL: SELECT T1.groupName, T1.groupYear, T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'live album' ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Provide the name of artists who released at least two bootlegs in 2016.
Evidence: at least two bootlegs refer to COUNT(releaseType = 'bootleg')≥ 2; groupYear = 2016;
SQL: SELECT artist FROM torrents WHERE groupYear = 2016 AND releaseType LIKE 'bootleg' GROUP BY artist HAVING COUNT(releaseType) > 2
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Which artist released singles between 1980 to 1982?
Evidence: releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;
SQL: SELECT artist FROM torrents WHERE groupYear BETWEEN 1980 AND 1982 AND releaseType LIKE 'single'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Indicates groups with id from 10 to 20 with singles downloaded at least 20.
Evidence: releaseType = 'single'; downloaded at least 20 refers to totalSnatched ≥ 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;
SQL: SELECT groupName FROM torrents WHERE totalSnatched >= 20 AND releaseType LIKE 'single' AND id BETWEEN 10 AND 20
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Among the artists from 1980 to 1982. Which artist was tagged as "disco"?
Evidence: from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'disco' AND T1.groupYear BETWEEN 1980 AND 1982
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Provide the name of artists who had no more than 100 downloads and are tagged "funk" in 1980.
Evidence: no more than 100 downloads refer to totalSnatched ≤ 100; groupYear = 1980; tag = 'funk';
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'funk' AND T1.groupYear = 1980 AND T1.totalSnatched <= 100
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Which artist has released the most singles with the tag "soul"?
Evidence: the most singles refer to MAX(COUNT(releaseType = 'single'));
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.releaseType = 'single' GROUP BY T1.artist ORDER BY COUNT(T1.releaseType) DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Among the artists with the id from 10 to 30. Which artist released the product with the tag "funk" in 1980?
Evidence: id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'funk' AND T1.groupYear = 1980 AND T1.id BETWEEN 10 AND 30
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: List the group name has the most downloaded that have released jazz genres from 1982 or later.
Evidence: the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear ≥ 1982;
SQL: SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'jazz' AND T1.groupYear >= 1982 ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Which artist has id "16"? Provide her or his tag genre.
Evidence: FALSE;
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.id = 16
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Among id from 10 to 50. Which artist tagged as "new.york" has the most downloads?
Evidence: Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);
SQL: SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.id BETWEEN 10 AND 50 AND T2.tag LIKE 'new.york' ORDER BY T1.totalSnatched DESC LIMIT 1
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: List the name of artists who have released albums and mixtape from 1980 to 1985 in "dance" genre.
Evidence: albums and mixtape refer to releaseType; from 1980 to 1985 refers to groupYear between 1980 and 1985; tag = 'dance';
SQL: SELECT COUNT(T1.artist) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'dance' AND T1.groupYear BETWEEN 1980 AND 1985 AND T1.releaseType LIKE 'album' OR T1.releaseType LIKE 'mixtape'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many singles were released between 1979 and 1981 labeled as "soul"?
Evidence: releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';
SQL: SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'soul' AND T1.groupYear BETWEEN 1979 AND 1981 AND T1.releaseType LIKE 'single'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many singles were released in 1979?
Evidence: releaseType = 'single'; groupYear = 1979;
SQL: SELECT COUNT(releaseType) FROM torrents WHERE releaseType LIKE 'single' AND groupYear = 1979
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: In 1980, how many singles were released by sugar daddy?
Evidence: sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;
SQL: SELECT COUNT(releaseType) FROM torrents WHERE artist LIKE 'sugar daddy' AND releaseType LIKE 'Single' AND groupYear = 1980
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: How many christmas albums were released in 2004?
Evidence: album refers to releaseType; groupYear = 2004; tag = 'christmas';
SQL: SELECT COUNT(T1.id) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = 'christmas' AND T1.groupYear = 2004 AND T1.releaseType LIKE 'album'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Please list all tags of kurtis blow from 2000 to 2010.
Evidence: kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;
SQL: SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 2000 AND 2010 AND T1.artist LIKE 'kurtis blow'
Database: music_tracker
Tables: torrents, tags
Columns (table index, column name): -1, *, 0, groupName, 0, totalSnatched, 0, artist, 0, groupYear, 0, releaseType, 0, groupId, 0, id, 1, index, 1, id, 1, tag
Question: Which album title and tag that millie jackson released in 1980?
Evidence: millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;
SQL: SELECT T1.groupName, T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear = 1980 AND T1.artist LIKE 'millie jackson' AND T1.releaseType LIKE 'album'