Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?

### Inputs:
table_name: table, columns: ['Number', 'Builder', 'Type', 'Date', 'Works number']

### Response:
SELECT Number FROM table WHERE Builder = baldwin locomotive works AND Works number = 40864