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

### Instruction:
when was the first elected when the  candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?

### Inputs:
table_name: table, columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result', 'Candidates']

### Response:
SELECT First elected FROM table WHERE Candidates = Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%