CREATE TABLE table_name_22 (took_office INT, left_office VARCHAR)

What was the greatest Took Office dates that Left Office in 1998?
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
SELECT MAX("took_office") FROM "table_name_22" WHERE "1998" = "left_office"