Table schema:
CREATE TABLE table_name_15 (number VARCHAR, builder VARCHAR, works_number VARCHAR)

Question: With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?
SQL: SELECT number FROM table_name_15 WHERE builder = "baldwin locomotive works" AND works_number = 40864