Baldwin Locomotive Works, also with works number 40864, is listed as what number?
CREATE TABLE table_name_2 (number VARCHAR, builder VARCHAR, works_number VARCHAR)
SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (number VARCHAR, builder VARCHAR, works_number VARCHAR) Question: Baldwin Locomotive Works, also with works number 40864, is listed as what number? [/INST] SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864 </s>