What year was republican, re-elected incumbent John all barham elected?
CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
SELECT "elected" FROM "california" WHERE "party"='republican' AND "status"='re-elected' AND "incumbent"='john all barham';