CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR)

Which District has a Party of republican and a Result of lost re-election democratic gain?
SELECT district FROM table_name_82 WHERE party = "republican" AND result = "lost re-election democratic gain"
SELECT "district" FROM "table_name_82" WHERE "lost re-election democratic gain" = "result" AND "party" = "republican"