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

### Instruction:
During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?

### Inputs:
table_name: table, columns: ['Model', 'Years', 'Engine code', 'Power', 'Torque']

### Response:
SELECT Years FROM table WHERE Engine code = m47d20 AND Model = 318td (diesel)