What is the party for the representative who was first elected before 2002 and the results were re-elected?
CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR) Question: What is the party for the representative who was first elected before 2002 and the results were re-elected? [/INST] SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002 </s>