CREATE TABLE "virginia" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);

Question: What district is Jim Moran the incumbent for.
SQL: SELECT "district" FROM "virginia" WHERE "incumbent"='jim moran';

Question: What was the election result before 2004 where Eric Cantor was the incumbent?
SQL: SELECT "results" FROM "virginia" WHERE "first_elected"<2004 AND "incumbent"='eric cantor';