question: Which term had a Democratic representative from district 7?
answer: SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
context: CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR)