Which District has a Party of republican and a Result of lost re-election democratic gain?
CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
SELECT "district" FROM "california" WHERE "party"='republican' AND "result"='lost re-election democratic gain';