user: Question: What is the title of the king who left office in 982 and entered office in 949?
Columns: ['Throne Name', 'Title', 'Born-Died', 'Entered office', 'Left office', 'Family Relations']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Diylamids of Fars (933–1062)', 'Diylamids of Fars (933–1062)', 'Diylamids of Fars (933–1062)', 'Diylamids of Fars (933–1062)', 'Diylamids of Fars (933–1062)', 'Diylamids of Fars (933–1062)']
SQL:

assistant: SELECT "Title" FROM "Table" WHERE "Left office" = '982' AND "Entered office" = '949';