CREATE TABLE table_name_42 (year NUMBER, budget VARCHAR2)

How many years had budgets of $39 million?
SELECT SUM(year) FROM table_name_42 WHERE budget = "$39 million"
SELECT SUM("year") FROM "table_name_42" WHERE "$39 million" = "budget"