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_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
  ### Question:
  Which was the district that had first elected greater than 2006 and is democratic?
  ### Answer:
  SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006