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_22 (term VARCHAR, district VARCHAR, party VARCHAR)
  ### Question:
  Which term had a Democratic representative from district 7?
  ### Answer:
  SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"