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

Question: What are incumbent William Vandever's results?
SQL: SELECT "result" FROM "california" WHERE "incumbent"='william vandever';

Question: Who was the first person elected from Democratic GAIN?
SQL: SELECT "first_elected" FROM "california" WHERE "result"='democratic gain';

Question: What was the result for incumbent Joseph McKenna who was first elected in 1884?
SQL: SELECT "result" FROM "california" WHERE "first_elected"='1884' AND "incumbent"='joseph mckenna';

Question: When was republican incumbent Joseph McKenna first elected?
SQL: SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "incumbent"='joseph mckenna';