When did the king who entered office in 1012 leave office?
CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR)
SELECT left_office FROM table_name_34 WHERE entered_office = "1012"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR) Question: When did the king who entered office in 1012 leave office? [/INST] SELECT left_office FROM table_name_34 WHERE entered_office = "1012" </s>