context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What year was R Dravid born and the role he played? | SELECT T1.DOB, T3.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'R Dravid' GROUP BY T1.DOB, T3.Role_Desc | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | How many times did SC Ganguly be the man of the match? | SELECT COUNT(T2.Man_of_the_Match) FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id WHERE T1.Player_Name = 'SC Ganguly' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | How many matches did team Mumbai Indians win in 2008? | SELECT COUNT(T.Match_Id) FROM ( SELECT T2.Match_Id FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id WHERE T1.Team_Name = 'Mumbai Indians' AND T2.Match_Date LIKE '2008%' GROUP BY T2.Match_Id ) T | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Which team won by wickets in match ID 335993? | SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner INNER JOIN Player_Match AS T3 ON T1.Team_Id = T3.Team_Id INNER JOIN Win_By AS T4 ON T2.Win_Type = T4.Win_Id WHERE T2.Match_Id = '335993' GROUP BY T1.Team_Name | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Count the matches that were won by wickets in all season. | SELECT COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T2.Win_type = 'wickets' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What is the role of W Jaffer in season year 2012? | SELECT T4.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id INNER JOIN Season AS T5 ON T3.Season_Id = T5.Season_Id WHERE T1.Player_name = 'W Jaffer' AND T5.Season_Year = 2012 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What are the names of players who had been man of the match more than 5 times in season year 2008? | SELECT CASE WHEN COUNT(T2.Man_of_the_Match) > 5 THEN T1.Player_Name ELSE 0 END FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T4.Season_Year = 2008 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What is the average of Indian players that were born between 1975 and 1985 among all players? | SELECT CAST(SUM(CASE WHEN T2.Country_Name = 'India' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE strftime('%Y', T1.DOB) BETWEEN '1975' AND '1985' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Calculate the percentage of left hand batting style players among all players. | SELECT CAST(SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What is the percentage of matches that are won by runs? | SELECT CAST(SUM(CASE WHEN T1.win_type = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Win_Type) FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | How many matches have 7 points of winning margin? | SELECT COUNT(Match_Id) FROM Match WHERE win_margin = 7 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | What is the total number of players born between 1970 to 1975? | SELECT COUNT(Player_Id) FROM Player WHERE strftime('%Y', DOB) BETWEEN '1970' AND '1975' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Who is the winning team in a match held on April 26, 2009 with a winning margin of 6 points? | SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T2.Win_Margin = 6 AND T2.Match_Date = '2009-04-26' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | In the match ID 419135, who won by runs? | SELECT T1.Team_Name 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 T2.Match_Id = 419135 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Among the matches held in St. George's Park, give the match ID of the match with the highest winning margin points. | SELECT T2.Match_Id FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id WHERE T1.Venue_Name = 'St George''s Park' ORDER BY T2.Win_Margin DESC LIMIT 1 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | How many of the players are from Sri Lanka? | SELECT COUNT(*) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'Sri Lanka' | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | List the player's name who played as a captain. | SELECT T2.Player_Name FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Captain' GROUP BY T2.Player_Name | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Give the match's venue and winning team for the match ID 392194. | SELECT T1.Venue_Name, T3.Team_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id INNER JOIN Team AS T3 ON T2.match_winner = T3.Team_Id WHERE T2.Match_Id = 392194 | bird |
CREATE TABLE soccer_2016 (Batting_Id integer, Batting_hand text, Bowling_Id integer, Bowling_skill text, City_Id integer, City_Name text, Country_id integer, Country_Id integer, Country_Name text, Extra_Id integer, Extra_Name text, Match_Id integer, Over_Id integer, Ball_Id integer, Extra_Type_Id integer, Extra_Runs in... | Among the matches of Delhi Daredevils in 2009, what is the percentage of their matches won by wickets? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What is the release title of the single that was released by Ron Hunt in 1979 that was downloaded 239 times? | SELECT groupName FROM torrents WHERE artist LIKE 'ron hunt & ronnie g & the sm crew' AND groupYear = 1979 AND releaseType LIKE 'single' AND totalSnatched = 239 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many times was the album released by blowfly in 1980 downloaded? | SELECT totalSnatched FROM torrents WHERE artist LIKE 'blowfly' AND groupYear = 1980 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What is the tag of the album with the highest amount of downloads? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What are the top 5 tags with the highest amount of downloads? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What is the release title of the single under the "funk" tag that was released the oldest? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Name all the release titles of the "ep's" under the alternative tag. | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What are the tags of the top 5 least downloaded live albums? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What is the tag and the artist of the most downloaded single? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many releases are tagged "1980s"? | SELECT COUNT(id) FROM tags WHERE tag LIKE '1980s' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many times has the release "city funk" been downloaded? | SELECT totalSnatched FROM torrents WHERE groupName LIKE 'city funk' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Please list the releases that have been downloaded for more than 20000 times. | SELECT groupName FROM torrents WHERE totalSnatched > 20000 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What are the tags of the release "sugarhill gang"? | SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'sugarhill gang' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many tags does the release "city funk" have? | SELECT COUNT(T2.tag) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupName = 'city funk' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Please list the titles of all the releases with the tag "1980s". | SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T2.tag = '1980s' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Among the releases with the tag "1980s", which one of them is the most downloaded? Please give its title. | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many releases by the artist michael jackson are tagged "pop"? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Among the releases that were released in 2000, how many of them were released as an album and tagged "pop"? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | What are the average download times for the a release tagged "1980s"? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Name the title of the top three releases with the highest number of downloads. | SELECT groupName FROM torrents ORDER BY totalSnatched DESC LIMIT 3 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | 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. | SELECT artist, groupName FROM torrents WHERE groupYear = 2012 AND releaseType LIKE 'Single' ORDER BY totalSnatched DESC LIMIT 1 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many albums and Single-Tables were released by the artist named '50 cent' between 2010 and 2015? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | An American rapper '2Pac' released his first solo album in 1991, how many years have passed until his next album was released? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Find the average number of downloads for Single-Tables released by '2Pac' between 2001 and 2013. | SELECT AVG(totalSnatched) FROM torrents WHERE artist LIKE '2Pac' AND releaseType LIKE 'Single' AND groupYear BETWEEN 2001 AND 2013 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Provide the title, release year and the tag associated with the live album that has the highest number of downloads? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Provide the name of artists who released at least two bootlegs in 2016. | SELECT artist FROM torrents WHERE groupYear = 2016 AND releaseType LIKE 'bootleg' GROUP BY artist HAVING COUNT(releaseType) > 2 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Which artist released singles between 1980 to 1982? | SELECT artist FROM torrents WHERE groupYear BETWEEN 1980 AND 1982 AND releaseType LIKE 'single' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Indicates groups with id from 10 to 20 with singles downloaded at least 20. | SELECT groupName FROM torrents WHERE totalSnatched >= 20 AND releaseType LIKE 'single' AND id BETWEEN 10 AND 20 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Among the artists from 1980 to 1982. Which artist was tagged as "disco"? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Provide the name of artists who had no more than 100 downloads and are tagged "funk" in 1980. | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Which artist has released the most singles with the tag "soul"? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Among the artists with the id from 10 to 30. Which artist released the product with the tag "funk" in 1980? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | List the group name has the most downloaded that have released jazz genres from 1982 or later. | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Which artist has id "16"? Provide her or his tag genre. | SELECT T2.tag FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.id = 16 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Among id from 10 to 50. Which artist tagged as "new.york" has the most downloads? | 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 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | List the name of artists who have released albums and mixtape from 1980 to 1985 in "dance" genre. | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many singles were released between 1979 and 1981 labeled as "soul"? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many singles were released in 1979? | SELECT COUNT(releaseType) FROM torrents WHERE releaseType LIKE 'single' AND groupYear = 1979 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | In 1980, how many singles were released by sugar daddy? | SELECT COUNT(releaseType) FROM torrents WHERE artist LIKE 'sugar daddy' AND releaseType LIKE 'Single' AND groupYear = 1980 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | How many christmas albums were released in 2004? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Please list all tags of kurtis blow from 2000 to 2010. | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Which album title and tag that millie jackson released in 1980? | 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' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Please list all release titles whose tag is jazz in 2005. | SELECT T1.groupName FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear = 2005 AND T2.tag LIKE 'jazz' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | From 1980 to 2000, which artist had the most disco releases? | SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1980 AND 2000 AND T2.tag LIKE 'disco' GROUP BY T1.artist ORDER BY COUNT(T2.tag) DESC LIMIT 1 | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | Which artists have released singles with the tag 1970s? | SELECT T1.artist FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.releaseType = 'single' AND T2.tag LIKE '1970s' | bird |
CREATE TABLE music_tracker (groupName text, totalSnatched integer, artist text, groupYear integer, releaseType text, groupId integer, id integer, index integer, id integer, tag text) | From 1979 to 1982, what was the percentage of united.states albums out of total albums were released? | SELECT CAST(SUM(CASE WHEN T2.tag LIKE 'united.states' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.releaseType) FROM torrents AS T1 INNER JOIN tags AS T2 ON T1.id = T2.id WHERE T1.groupYear BETWEEN 1979 AND 1982 AND T1.releaseType LIKE 'album' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Among the countries in the group of Heavily Indebted Poor Countries, how many of them are under the lending category of the International Development Associations? | SELECT COUNT(CountryCode) FROM Country WHERE LendingCategory = 'IDA' AND OtherGroups = 'HIPC' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Please list the countries under the lending category of the International Development Associations and have a external debt reporting finished by estimation. | SELECT ShortName, ExternalDebtReportingStatus FROM Country WHERE LendingCategory = 'IDA' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What's the description of the series code SM.POP.TOTL for Aruba? | SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'SM.POP.TOTL' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Please list the countries in Latin America & Caribbean with a note on the series code SM.POP.TOTL. | SELECT T1.SHORTNAME, T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Region = 'Latin America & Caribbean' AND T2.Seriescode = 'SM.POP.TOTL' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Among the countries with note on the series code SM.POP.TOTL, how many of them are in the low-income group? | SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Seriescode = 'SM.POP.TOTL' AND T1.IncomeGroup = 'Low income' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Please list the descriptions of the series code SM.POP.TOTL for all the countries that are under the lending category of the International Development Associations. | SELECT T2.Description FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | How many low-income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL? | SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.LendingCategory = 'IDA' AND T2.Seriescode = 'SM.POP.TOTL' AND IncomeGroup = 'Low income' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Among the countries in the High income: OECD group whose currency unit is Euro, how many of them have a note on the series code SP.DYN.AMRT.FE? | SELECT COUNT(T1.Countrycode) FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.IncomeGroup = 'High income: OECD' AND T1.CurrencyUnit = 'Euro' AND T2.Seriescode = 'SP.DYN.AMRT.FE' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the long name of the country with the description "Estimates are derived from data on foreign-born population." on the series code SM.POP.TOTL? | SELECT T1.LongName FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Estimates are derived FROM data on foreign-born population.' AND T2.Seriescode = 'SM.POP.TOTL' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the description of the footnote on the series code AG.LND.FRST.K2 in 1990 for Aruba? | SELECT T2.Description FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' AND T2.Year = 'YR1990' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | On which years did Aruba got a footnote on the series code AG.LND.FRST.K2? | SELECT T2.Year FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'AG.LND.FRST.K2' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Please list the countries that got the footnote "Data are classified as official aid." on the series code DC.DAC.AUSL.CD in 2002. | SELECT T1.SHORTNAME FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data are classified as official aid.' AND T2.Seriescode = 'DC.DAC.AUSL.CD' AND T2.Year LIKE '%2002%' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | How many footnotes did Aruba got on different series code in the year 2002? | SELECT COUNT(T2.SeriesCode) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Year = 'YR2002' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | For how many consecutive years did Aruba get a footnote on the series code BX.KLT.DINV.CD.WD? | SELECT COUNT(T2.Year) FROM Country AS T1 INNER JOIN FootNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.ShortName = 'Aruba' AND T2.Seriescode = 'BX.KLT.DINV.CD.WD' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the average adolescent fertility rate of the country whose Alpha2Code is 1A over the years this indicator was calculated. | SELECT AVG(T2.Value) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.Countrycode WHERE T1.Alpha2Code = '1A' AND T2.IndicatorName LIKE 'adolescent fertility rate%' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What are the special notes for the country whose average adolescent fertility rate is the highest? | SELECT DISTINCT T1.SpecialNotes FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Value = ( SELECT Value FROM Indicators WHERE IndicatorName LIKE 'Adolescent fertility rate%' ORDER BY Value DESC LIMIT 1 ) | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | List the East Asia & Pacific countries which are under the High income: nonOECD group. Please include their alpha code. | SELECT CountryCode, Alpha2Code FROM Country WHERE Region = 'East Asia & Pacific' AND IncomeGroup = 'High income: nonOECD' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | In which country's latest trade data and latest water withdrawal data were both updated in the year 2013? Give its long name and Alpha 2 code. | SELECT LongName, Alpha2Code FROM Country WHERE LatestTradeData = 2013 AND LatestWaterWithdrawalData = 2013 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the average value of Adjusted net enrolment rate, primary, both sexes (%) indicator in Algeria from 1975 to 1980? | SELECT CAST(SUM(Value) AS REAL) / COUNT(CountryCode) FROM Indicators WHERE CountryName = 'Algeria' AND Year > 1974 AND Year < 1981 AND IndicatorName = 'Adjusted net enrolment rate, primary, both sexes (%)' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What are the Indicator names and aggregation methods when the topic is Economic Policy & Debt: Balance of payments: Capital & financial account? | SELECT IndicatorName, AggregationMethod FROM Series WHERE Topic = 'Economic Policy & Debt: Balance of payments: Capital & financial account' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | List down the series codes in which the topic is about Environment: Emissions and the license type is restricted. Please include their alpha code. | SELECT SeriesCode FROM Series WHERE Topic = 'Environment: Emissions' AND LicenseType = 'Restricted' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | In 1970, how many Middle Eastern & North African countries whose value for CO2 emissions from gaseous fuel consumption (kt) indicator is more than 600? | SELECT COUNT(T2.CountryCode) FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Middle East & North Africa' AND T1.IndicatorName = 'CO2 emissions FROM gaseous fuel consumption (kt)' AND T1.Year = 1970 AND T1.Value > 600 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | List down the top 3 Latin American & Caribbean countries with the highest average value in "CO2 emissions (kt)" indicator since 1965. Give their highest value and in what year. | SELECT DISTINCT T1.CountryCode, T1.Year, T1.Value FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Region = 'Latin America & Caribbean' AND T1.IndicatorName = 'CO2 emissions (kt)' AND T1.Year > 1965 AND T1.Year < 1980 ORDER BY T1.Value DESC LIMIT 3 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the series note description of the series "SP.DYN.TO65.MA.ZS" which covers the topic "Health: Mortality" in 1967? | SELECT T2.Description FROM Series AS T1 INNER JOIN SeriesNotes AS T2 ON T1.SeriesCode = T2.Seriescode WHERE T1.SeriesCode = 'SP.DYN.TO65.MA.ZS' AND T1.Topic = 'Health: Mortality' AND T2.Year = 'YR1967' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Please write down the footnote descriptions of Albania in 1981. | SELECT DISTINCT T1.Description FROM FootNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Year = 'YR1981' AND T2.ShortName = 'Albania' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Enumerate the footnote narratives of The Bahamas under the series code SH.DTH.IMRT in the year 1984. | SELECT DISTINCT T1.Description FROM FootNotes AS T1 INNER JOIN Country AS T2 ON T1.Countrycode = T2.CountryCode WHERE T1.Year = 'YR1984' AND T2.ShortName = 'The Bahamas' AND T1.Seriescode = 'SH.DTH.IMRT' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the short name of the country in which the "Net bilateral aid flows from DAC donors, Sweden (current US$)" indicator hit the 570,000 value in 1970? | SELECT T2.ShortName FROM Indicators AS T1 INNER JOIN Country AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.IndicatorName = 'Net bilateral aid flows FROM DAC donors, Sweden (current US$)' AND T1.Year = 1970 AND T1.Value = 570000 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | List down the World Bank code of the countries whose country note has described "Data source : Human Mortality Database by University of California, Berkeley, and Max Planck Institute for Demographic Research."? Please include their lending category. | SELECT DISTINCT T1.Wb2code, T1.LendingCategory FROM Country AS T1 INNER JOIN CountryNotes AS T2 ON T1.CountryCode = T2.Countrycode WHERE T2.Description = 'Data source : Human Mortality Database by University of California, Berkeley, and Max Planck Institute for Demographic Research.' AND T1.LendingCategory != '' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What is the topic of the series when the Total reserves minus gold (current US$) indicator of Haiti hit the value of 3,000,000 in 1961? Please include its series code and license type. | SELECT T2.Topic, T2.Seriescode, T2.LicenseType FROM Indicators AS T1 INNER JOIN Series AS T2 ON T1.IndicatorName = T2.IndicatorName WHERE T1.Year = 1961 AND T1.CountryName = 'Haiti' AND T1.IndicatorName = 'Total reserves minus gold (current US$)' AND T1.Value = 3000000 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | How many countries have reached their Adjusted net national income per capita (constant 2005 US$) indicator value to more than 1,000 but have not finished their external debt reporting? | SELECT COUNT(T1.CountryCode) FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.IndicatorName = 'Adjusted net national income per capita (constant 2005 US$)' AND T1.ExternalDebtReportingStatus = 'Preliminary' AND T2.Value > 1000 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Which countries have a fertility rate between 4 and 5 in 1979? List their names. | SELECT CountryName FROM Indicators WHERE Year = 1979 AND IndicatorName = 'Fertility rate, total (births per woman)' AND value >= 4 AND Value <= 5 | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | Find the countries in south Asia which are in the low-income group. What is the source of their recent income and expenditure data? List it alongside the table name of the countries. | SELECT TableName, SourceOfMostRecentIncomeAndExpenditureData FROM Country WHERE Region = 'South Asia' AND IncomeGroup = 'Low income' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What are the sources for the data of children who finished primary school education in Latin America & Caribbean countries? | SELECT DISTINCT T2.Source FROM Footnotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode WHERE T3.Region = 'Latin America & Caribbean' AND T2.IndicatorName = 'Children out of school, primary' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | List the sources for the Net Migration in South American countries in 2002. | SELECT T2.Source FROM CountryNotes AS T1 INNER JOIN Series AS T2 ON T1.Seriescode = T2.SeriesCode INNER JOIN Country AS T3 ON T1.Countrycode = T3.CountryCode INNER JOIN SeriesNotes AS T4 ON T2.SeriesCode = T4.Seriescode WHERE T4.Year LIKE '%2002%' AND T2.IndicatorName = 'Net migration' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | What are the sources for the data of children who finished primary school education in North American countries? | SELECT DISTINCT T3.Description FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode INNER JOIN CountryNotes AS T3 ON T2.CountryCode = T3.Countrycode WHERE T1.Region = 'North America' AND T2.IndicatorName = 'Out-of-school children of primary school age, both sexes (number)' | bird |
CREATE TABLE world_development_indicators (CountryCode text, ShortName text, TableName text, LongName text, Alpha2Code text, CurrencyUnit text, SpecialNotes text, Region text, IncomeGroup text, Wb2Code text, NationalAccountsBaseYear text, NationalAccountsReferenceYear text, SnaPriceValuation text, LendingCategory text,... | In the countries for which the latest trade data are from 2013, what was the GDP growth in 2014? List them in the ascending order of GDP. | SELECT DISTINCT T1.CountryCode, T2.Value FROM Country AS T1 INNER JOIN Indicators AS T2 ON T1.CountryCode = T2.CountryCode WHERE T1.LatestTradeData = 2013 AND T2.IndicatorName LIKE 'GDP growth (annual %)' AND T2.year = 2014 AND T2.Value > 0 ORDER BY T2.Value ASC | bird |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.