CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);

Question: Which years did James Robert Jones serve?
SQL: SELECT "years" FROM "external_links" WHERE "representative"='james robert jones';

Question: James Hutchins Johnson, from New Hampshire, served during what years?
SQL: SELECT "years" FROM "external_links" WHERE "state"='new hampshire' AND "representative"='james hutchins johnson';