Schema: CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)
Question: When did the king who entered office in 1012 leave office?
SQL: SELECT left_office FROM table_name_34 WHERE entered_office = "1012"