query
stringlengths 29
423
| question
stringlengths 17
126
| db_id
stringclasses 8
values |
---|---|---|
SELECT groupName, artist FROM torrents
|
what are the entries by each specific artist/group?
|
WhatCDHipHop
|
SELECT DISTINCT tag FROM tags
|
which tags exist?
|
WhatCDHipHop
|
SELECT DISTINCT releaseType FROM torrents
|
what release types are captured in this data set?
|
WhatCDHipHop
|
SELECT groupName FROM torrents WHERE groupYear > 2000 ORDER BY totalSnatched DESC LIMIT 5
|
Find me top 5 most popular releases after 2000?
|
WhatCDHipHop
|
SELECT DISTINCT groupName FROM torrents WHERE totalSnatched > 100 AND releaseType = "album"
|
Which albums have been downloaded more than 100 times?
|
WhatCDHipHop
|
SELECT T2.groupName FROM torrents as T2 JOIN tags as T1 ON T1.id = T2.id WHERE T1.tag = "houston" ORDER BY totalSnatched DESC LIMIT 1
|
Name the most popular release on houston.
|
WhatCDHipHop
|
SELECT groupName FROM torrents WHERE artist = "lasean camry" AND totalSnatched = (SELECT max(totalSnatched) FROM torrents WHERE artist = "lasean camry") UNION SELECT groupName FROM torrents WHERE artist = "lasean camry" AND totalSnatched = (SELECT min(totalSnatched) FROM torrents WHERE artist = "lasean camry")
|
Name the most popular and least popular releases of lasean camry?
|
WhatCDHipHop
|
SELECT groupName FROM torrents WHERE releaseType = "album" ORDER BY totalSnatched DESC LIMIT 10
|
Find me top 10 albums ranked by their popularity.
|
WhatCDHipHop
|
SELECT T1.tag FROM torrents as T2 JOIN tags as T1 ON T1.id = T2.id WHERE T2.groupYear >= 2010 GROUP BY T1.tag ORDER BY T2.totalSnatched DESC LIMIT 10
|
Find me the most popular topics since 2010.
|
WhatCDHipHop
|
SELECT groupYear FROM torrents GROUP BY groupYear ORDER BY count(groupName) LIMIT 1
|
Which year had the minimum number of releases?
|
WhatCDHipHop
|
SELECT groupName FROM torrents ORDER BY totalSnatched DESC LIMIT 1
|
Which release is being downloaded the most?
|
WhatCDHipHop
|
SELECT artist FROM torrents WHERE groupYear = 2015 GROUP BY artist ORDER BY totalSnatched DESC LIMIT 1
|
Who or which group is most popular in 2015?
|
WhatCDHipHop
|
SELECT T1.tag, T2.groupName FROM torrents as T2 JOIN tags as T1 ON T1.id = T2.id
|
Which tag is used for which release title?
|
WhatCDHipHop
|
SELECT groupYear FROM torrents GROUP BY groupYear ORDER BY count(groupName) DESC LIMIT 1
|
Which year has the most released song?
|
WhatCDHipHop
|
SELECT artist FROM torrents GROUP BY artist ORDER BY count(groupName) DESC LIMIT 1
|
Which artist/group is most productive?
|
WhatCDHipHop
|
SELECT artist FROM torrents GROUP BY artist ORDER BY avg(totalSnatched) DESC LIMIT 1
|
Which artist/group has the highest average download of songs?
|
WhatCDHipHop
|
SELECT groupYear FROM torrents GROUP BY groupYear ORDER BY count(groupName) DESC LIMIT 1
|
Which year has the most CDs released?
|
WhatCDHipHop
|
SELECT groupName FROM torrents ORDER BY totalSnatched DESC LIMIT 1
|
Which CD has been downloaded the most times?
|
WhatCDHipHop
|
SELECT releaseType FROM torrents GROUP BY releaseType ORDER BY sum(totalSnatched) DESC LIMIT 1
|
Which kind of release type is the most popular?
|
WhatCDHipHop
|
SELECT artist FROM torrents GROUP BY artist ORDER BY sum(totalSnatched) DESC LIMIT 1
|
Whose CDs sells best?
|
WhatCDHipHop
|
SELECT sum(totalSnatched), releaseType FROM torrents GROUP BY releaseType
|
What are the downloaded numbers and their release types?
|
WhatCDHipHop
|
SELECT sum(totalSnatched) FROM torrents WHERE groupYear BETWEEN 2000 AND 2010 UNION SELECT sum(totalSnatched) FROM torrents WHERE groupYear < 2000
|
What are the downloaded numbers of 2000s and before 2000?
|
WhatCDHipHop
|
SELECT count(*) FROM ( SELECT groupName FROM torrents GROUP BY groupName HAVING count(*) > 1 )
|
How many same release titles are there in the table?
|
WhatCDHipHop
|
SELECT artist FROM torrents GROUP BY artist ORDER BY count(groupName) DESC LIMIT 1
|
Which artist release the most CDs?
|
WhatCDHipHop
|
SELECT sum(totalSnatched) FROM torrents WHERE releaseType = "ep" UNION SELECT sum(totalSnatched) FROM torrents WHERE releaseType = "album"
|
How many downloads of ep and album respectively?
|
WhatCDHipHop
|
SELECT artist FROM torrents GROUP BY artist HAVING count(*) = 1
|
What are the artist/groups that released only one CD?
|
WhatCDHipHop
|
SELECT artist FROM torrents WHERE groupYear > 2010 GROUP BY artist
|
What are the actors who have had releases after 2010?
|
WhatCDHipHop
|
SELECT Location FROM GreaterManchesterCrime WHERE Location like "%Street%" GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Which streets in Manchester have the highest rates of crime?
|
GreaterManchesterCrime
|
SELECT CrimeID FROM GreaterManchesterCrime WHERE Type = "Violence and sexual offences" ORDER BY CrimeTS DESC LIMIT 1
|
When was the last instance of a violent or sexual offense in Manchester?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime WHERE Type = "Violence and sexual offences" ORDER BY CrimeTS DESC LIMIT 1
|
Where was the last instance of a violent or sexual offense in Manchester?
|
GreaterManchesterCrime
|
SELECT LSOA FROM GreaterManchesterCrime GROUP BY LSOA ORDER BY count(*) DESC LIMIT 1
|
Which neighborhood has the highest crime rate?
|
GreaterManchesterCrime
|
SELECT count(*) FROM GreaterManchesterCrime WHERE Location like "%Eden Street%"
|
What is the crime rate for Eden Street area?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
What is the most common type of crime?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime WHERE Type = "Burglary" GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Which neighborhood/area has the highest burglary rate?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Which area do most of the crimes happen?
|
GreaterManchesterCrime
|
SELECT LSOA FROM GreaterManchesterCrime GROUP BY LSOA ORDER BY count(*) DESC LIMIT 1
|
Which Lower Layer Output Area do most of the crimes happen?
|
GreaterManchesterCrime
|
SELECT CrimeTS FROM GreaterManchesterCrime GROUP BY CrimeTS ORDER BY count(*) DESC LIMIT 1
|
What time do most of the crimes happen?
|
GreaterManchesterCrime
|
SELECT Outcome FROM GreaterManchesterCrime WHERE Location LIKE "%Street%" GROUP BY Outcome ORDER BY count(*) DESC LIMIT 1
|
What are the most likely outcome of the police investigation if the crime happen on "street"?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime WHERE LSOA LIKE "%Salford%" GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
Which type of crime happen the most in Salford?
|
GreaterManchesterCrime
|
SELECT count(*) FROM GreaterManchesterCrime WHERE Outcome = "Under investigation"
|
How many crimes are under investigation?
|
GreaterManchesterCrime
|
SELECT count(*) FROM GreaterManchesterCrime
|
How many crimes has been conducted?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime GROUP BY Location ORDER BY count(*) DESC LIMIT 3
|
What is the top 3 area of crime conducted?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime WHERE Outcome LIKE "%Investigation complete%" GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
Which type of crime has the highest rate of "Investigation complete"?
|
GreaterManchesterCrime
|
SELECT count(*) FROM GreaterManchesterCrime WHERE Type LIKE "%Drug%"
|
How many crimes were classified as "Drugs"?
|
GreaterManchesterCrime
|
SELECT count(*) FROM GreaterManchesterCrime WHERE Outcome LIke "%Under investigation%"
|
How many crimes are still "Under investigation" to date?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime WHERE Type LIke "%Drug%" GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Which location has the top amount of "Drugs" crime conducted?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
What’s the most common type of crime?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Where is the most dangerous area?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime GROUP BY Location ORDER BY count(*) LIMIT 1
|
Where is the safest area?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime WHERE Type = "Violence and sexual offences" GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
Where is the place with the largest number of sexual offenses crime events?
|
GreaterManchesterCrime
|
SELECT Location FROM GreaterManchesterCrime GROUP BY Location ORDER BY count(*) DESC LIMIT 1
|
If it is possible to increase the number of police officers, which place is with the first priority?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime WHERE Outcome = "Awaiting court outcome" GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
Which type of crime has the most prosecution cases?
|
GreaterManchesterCrime
|
SELECT Type FROM GreaterManchesterCrime WHERE Outcome = "Investigation complete; no suspect identified" GROUP BY Type ORDER BY count(*) DESC LIMIT 1
|
Which type of crime has the most investigation complete cases?
|
GreaterManchesterCrime
|
SELECT Outcome FROM GreaterManchesterCrime WHERE CrimeID = "6B:E2:54:C6:58:D2"
|
What is the result in case 6B:E2:54:C6:58:D2?
|
GreaterManchesterCrime
|
SELECT PSH FROM football_data WHERE HomeTeam LIKE "%Arsenal%" AND FTR = "H" UNION SELECT PSA FROM football_data WHERE AwayTeam LIKE "%Arsenal%" AND FTR = "A"
|
What are the Pinnacle odds for Arsenal winning matches?
|
WorldSoccerDataBase
|
SELECT * FROM football_data WHERE Country = "Spain" AND FTR = "A"
|
Which matches in Spain did the away team win?
|
WorldSoccerDataBase
|
SELECT * FROM football_data WHERE Season = "2016" AND FTR = "D" AND League = "Premier League"
|
Which Premier League matches ended in a draw in 2016?
|
WorldSoccerDataBase
|
SELECT * FROM football_data WHERE B365D > 3
|
Which matches had draw odds from Bet365 higher than 3?
|
WorldSoccerDataBase
|
SELECT DRAW_CLOSING FROM betfront WHERE MATCH LIKE "%VfB Stuttgart%"
|
What were the closing odds for a draw in matches with VfB Stuttgart?
|
WorldSoccerDataBase
|
SELECT * FROM football_data WHERE (FTHG + FTAG) = 0
|
Which games had no goals scored at full time?
|
WorldSoccerDataBase
|
SELECT AwayTeam FROM football_data WHERE HomeTeam = "Omiya Ardija" AND Season LIKE "%2018%"
|
What is the away team against Omiya Ardija in 2018?
|
WorldSoccerDataBase
|
SELECT count(*) FROM football_data WHERE Season LIKE "%2010%" AND Country = "Spain"
|
How many matches in Spain in 2010?
|
WorldSoccerDataBase
|
SELECT MATCH FROM betfront ORDER BY DRAW_OPENING DESC LIMIT 1
|
Which matches has the highest draw opening so far?
|
WorldSoccerDataBase
|
SELECT YEAR FROM betfront GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
|
Which year has most matches?
|
WorldSoccerDataBase
|
SELECT count(*) FROM football_data WHERE PSH != "" AND PSD != "" AND PSA != ""
|
How many matches did Pinnacle have betting records?
|
WorldSoccerDataBase
|
SELECT count(*) FROM football_data WHERE B365H > PSH
|
How many matches did Bet365 gives higher home win odds than Pinnacle?
|
WorldSoccerDataBase
|
SELECT count(*) FROM football_data WHERE FTHG + FTAG > 5
|
How many games that the total number of goals exceed 5?
|
WorldSoccerDataBase
|
SELECT max(B365A) FROM football_data
|
What is the highest home losing odds in Bet365 ever?
|
WorldSoccerDataBase
|
SELECT count(*) FROM football_data WHERE FTHG = 0 AND FTAG = 0
|
How many number of games ended in a 0-0 tie?
|
WorldSoccerDataBase
|
SELECT count(Div) FROM football_data
|
How many league division does football_data database has?
|
WorldSoccerDataBase
|
SELECT count(League) FROM football_data WHERE Country != "Scotland" and Country != "England" and Referee != ""
|
Do other leagues have referee name records outside of Scotland and England?
|
WorldSoccerDataBase
|
SELECT B365D FROM football_data WHERE HomeTeam = "Swindon" and AwayTeam = "Millwall" and Season = "2016/2017"
|
What's the odds for draw on Bet365 for the game Swindon v.s. Millwall for 2016/2017 season?
|
WorldSoccerDataBase
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.