What is the most recent year for a first elected republican?
CREATE TABLE table_name_36 (first_elected INTEGER, party VARCHAR)
SELECT MAX(first_elected) FROM table_name_36 WHERE party = "republican"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (first_elected INTEGER, party VARCHAR) Question: What is the most recent year for a first elected republican? [/INST] SELECT MAX(first_elected) FROM table_name_36 WHERE party = "republican" </s>