CREATE TABLE table_5951 ("Title" TEXT, "Year" FLOAT, "Director" TEXT, "Budget" TEXT, "Gross  ( worldwide ) " TEXT)

How many years had budgets of $39 million?
SELECT SUM("Year") FROM table_5951 WHERE "Budget" = '$39 million'
SELECT SUM("Year") FROM "table_5951" WHERE "Budget" = '$39 million'