question: What counties represented have a democratic committee, and a committee of ways and means?
answer: SELECT counties_represented FROM table_name_17 WHERE party = "democratic" AND committee = "ways and means"
context: CREATE TABLE table_name_17 (counties_represented VARCHAR, party VARCHAR, committee VARCHAR)