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

Party of republican, and a District of 7th is what elected?
SELECT "Elected" FROM table_5784 WHERE "Party" = 'republican' AND "District" = '7th'
SELECT "Elected" FROM "table_5784" WHERE "District" = '7th' AND "Party" = 'republican'