CREATE TABLE table_5785 ("District" TEXT, "Incumbent" TEXT, "Party" TEXT, "Elected" FLOAT, "Status" TEXT)

Party of republican, and a District of 5th is what highest elected?
SELECT MAX("Elected") FROM table_5785 WHERE "Party" = 'republican' AND "District" = '5th'
SELECT MAX("Elected") FROM "table_5785" WHERE "District" = '5th' AND "Party" = 'republican'