CREATE TABLE albums (aid DECIMAL, title TEXT, year DECIMAL, label TEXT, type TEXT)
CREATE TABLE vocals (songid DECIMAL, bandmate DECIMAL, type TEXT)
CREATE TABLE tracklists (albumid DECIMAL, position DECIMAL, songid DECIMAL)
CREATE TABLE band (id DECIMAL, firstname TEXT, lastname TEXT)
CREATE TABLE performance (songid DECIMAL, bandmate DECIMAL, stageposition TEXT)
CREATE TABLE songs (songid DECIMAL, title TEXT)
CREATE TABLE instruments (songid DECIMAL, bandmateid DECIMAL, instrument TEXT)

How many songs appear in studio albums?
SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio"
SELECT COUNT(DISTINCT "T3"."title") FROM "albums" AS "T1" JOIN "tracklists" AS "T2" ON "T1"."aid" = "T2"."albumid" JOIN "songs" AS "T3" ON "T2"."songid" = "T3"."songid" WHERE "Studio" = "t1"."type"