CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);

Question: Which District has a Party of republican and a Result of lost re-election democratic gain?
SQL: SELECT "district" FROM "california" WHERE "party"='republican' AND "result"='lost re-election democratic gain';

Question: What is First elected that has republican Party and a Result of retired democratic gain?
SQL: SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "result"='retired democratic gain';

Question: What is the First elected of california 3?
SQL: SELECT "first_elected" FROM "california" WHERE "district"='california 3';

Question: Which Incumbent has a Result of retired democratic gain?
SQL: SELECT "incumbent" FROM "california" WHERE "result"='retired democratic gain';

Question: Which First elected has a Incumbent of none (new seat)?
SQL: SELECT "first_elected" FROM "california" WHERE "incumbent"='none (new seat)';

Question: What is the First elected that has a republican party and california 4?
SQL: SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "district"='california 4';