SCHEMA:
CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)
USER:
What is the title of the king who left office in 982 and entered office in 949?

QUERY:
SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949"