CREATE TABLE races (driverId VARCHAR2, raceId VARCHAR2, YEAR VARCHAR2)
CREATE TABLE results (driverId VARCHAR2, raceId VARCHAR2, YEAR VARCHAR2)

How many drivers did not participate in the races held in 2009?
SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)
SELECT COUNT(DISTINCT "driverId") FROM "results" WHERE NOT "raceId" IN (SELECT "raceId" FROM "races" WHERE "YEAR" <> 2009)