What was the greatest Took Office dates that Left Office in 1998?
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR)
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR) Question: What was the greatest Took Office dates that Left Office in 1998? [/INST] SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998" </s>