CREATE TABLE table_name_22 (term VARCHAR2, district VARCHAR2, party VARCHAR2)

Which term had a Democratic representative from district 7?
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
SELECT "term" FROM "table_name_22" WHERE "7" = "district" AND "democratic" = "party"