Question: Find the number of songs in all the studio albums.
Schema: create table songs (title varchar, songid varchar, PRIMARY KEY (title)); create table albums (aid varchar, PRIMARY KEY (aid)); create table tracklists (albumid varchar, songid varchar, PRIMARY KEY (albumid))
SQL: 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"