Baldwin Locomotive Works, also with works number 40864, is listed as what number?
CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" real
);
SELECT "number" FROM "locomotives" WHERE "builder"='baldwin locomotive works' AND "works_number"=40864;