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 (district VARCHAR, first_elected VARCHAR, result VARCHAR)
  ### Question:
  Which district had a first elected in 1882 with a result of re-elected?
  ### Answer:
  SELECT district FROM table_name_7 WHERE first_elected = 1882 AND result = "re-elected"