CREATE TABLE department (department_id VARCHAR2)
CREATE TABLE management (department_id VARCHAR2)

How many departments are led by heads who are not mentioned?
SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)
SELECT COUNT(*) FROM "department" WHERE NOT "department_id" IN (SELECT "department_id" FROM "management")