CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)

When did the king who entered office in 1012 leave office?
SELECT left_office FROM table_name_34 WHERE entered_office = "1012"
SELECT "left_office" FROM "table_name_34" WHERE "1012" = "entered_office"