When did the king who entered office in 1012 leave office?
CREATE TABLE table_36346 (
    "Throne Name" text,
    "Title" text,
    "Born-Died" text,
    "Entered office" text,
    "Left office" text,
    "Family Relations" text
)
SELECT "Left office" FROM table_36346 WHERE "Entered office" = '1012'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When did the king who entered office in 1012 leave office? ### Input: CREATE TABLE table_36346 (
    "Throne Name" text,
    "Title" text,
    "Born-Died" text,
    "Entered office" text,
    "Left office" text,
    "Family Relations" text
) ### Response: SELECT "Left office" FROM table_36346 WHERE "Entered office" = '1012'