text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  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?
  ### Answer:
  SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002