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_1341423_40 (first_elected INTEGER, results VARCHAR, district VARCHAR)
  ### Question:
  what is the earliest first elected with the results re-elected in the district south carolina 3?
  ### Answer:
  SELECT MAX(first_elected) FROM table_1341423_40 WHERE results = "Re-elected" AND district = "South Carolina 3"