CREATE TABLE table_55945 ("Year" FLOAT, "Title" TEXT, "Role" TEXT, "Studio" TEXT, "Director" TEXT)

Who was the director for To Have and Have Not, earlier than 1945 with WB studio?
SELECT "Director" FROM table_55945 WHERE "Studio" = 'wb' AND "Year" < '1945' AND "Title" = 'to have and have not'
SELECT "Director" FROM "table_55945" WHERE "Studio" = 'wb' AND "Title" = 'to have and have not' AND "Year" < '1945'