CREATE TABLE tags (index DECIMAL, id DECIMAL, tag TEXT)
CREATE TABLE torrents (groupname TEXT, totalsnatched DECIMAL, artist TEXT, groupyear DECIMAL, releasetype TEXT, groupid DECIMAL, id DECIMAL)

What are the top 20 pop albums?
SELECT T2.groupname FROM torrents AS T2 JOIN tags AS T1 ON T1.id = T2.id WHERE T1.tag = "pop" AND T2.releasetype = "album" ORDER BY T2.totalsnatched DESC LIMIT 20
SELECT "T2"."groupname" FROM "torrents" AS "T2" JOIN "tags" AS "T1" ON "T1"."id" = "T2"."id" AND "T1"."tag" = "pop" WHERE "T2"."releasetype" = "album" ORDER BY "T2"."totalsnatched" DESC NULLS LAST LIMIT 20