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

### Instruction:
The episode with the no. 54, directed by Charles Haid, is written by who?

### Inputs:
table_name: table, columns: ['No.', '#', 'Title', 'Directed by', 'Written by', 'Patient Portrayer', 'Original air date', 'Production code']

### Response:
SELECT Written by FROM table WHERE Directed by = Charles Haid AND No. = 54