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

How many songs have vocals of type lead?
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE type = "lead"
SELECT COUNT(DISTINCT "title") FROM "vocals" AS "T1" JOIN "songs" AS "T2" ON "T1"."songid" = "T2"."songid" WHERE "lead" = "type"