What was the category of Richard Nixon as President in a year prior to 2009?
CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR)
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR) Question: What was the category of Richard Nixon as President in a year prior to 2009? [/INST] SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009 </s>