SELECT MAX(elected) FROM table_name_39 WHERE party = "republican" AND district = "5th"
Partai Republik, dan distrik ke -5 adalah yang terpilih tertinggi?
CREATE TABLE table_name_39 (elected INTEGER, party VARCHAR, district VARCHAR)