CREATE TABLE photos (id VARCHAR, camera_lens_id VARCHAR)
CREATE TABLE camera_lens (id VARCHAR, camera_lens_id VARCHAR)

How many camera lenses are not used in taking any photos?
SELECT COUNT(*) FROM camera_lens WHERE NOT id IN (SELECT camera_lens_id FROM photos)
SELECT COUNT(*) FROM "camera_lens" WHERE NOT "id" IN (SELECT "camera_lens_id" FROM "photos")