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)

How many downloads of ep and album respectively?
SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "ep" UNION SELECT SUM(totalsnatched) FROM torrents WHERE releasetype = "album"
SELECT SUM("totalsnatched") FROM "torrents" WHERE "ep" = "releasetype" UNION SELECT SUM("totalsnatched") FROM "torrents" WHERE "album" = "releasetype"