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

What year was republican, re-elected incumbent John all barham elected?
SELECT "Elected" FROM table_37165 WHERE "Party" = 'republican' AND "Status" = 're-elected' AND "Incumbent" = 'john all barham'
SELECT "Elected" FROM "table_37165" WHERE "Incumbent" = 'john all barham' AND "Party" = 'republican' AND "Status" = 're-elected'