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_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
  ### Question:
  Which Party has a First elected smaller than 1878, and a District of south carolina 3?
  ### Answer:
  SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"