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

### Instruction:
What is the title of the king who left office in 982 and entered office in 949?

### Inputs:
table_name: table, columns: ['Throne Name', 'Title', 'Born-Died', 'Entered office', 'Left office', 'Family Relations']

### Response:
SELECT Title FROM table WHERE Left office = 982 AND Entered office = 949