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

Question: Which district has joseph t. johnson as an incumbent?
SQL: SELECT "district" FROM "south_carolina" WHERE "incumbent"='joseph t. johnson';

Question: What was the result for james o'h. patterson when first elected in 1904?
SQL: SELECT "result" FROM "south_carolina" WHERE "first_elected"='1904' AND "incumbent"='james o''h. patterson';

Question: Which party was re-elected in south carolina 5 district?
SQL: SELECT "party" FROM "south_carolina" WHERE "result"='re-elected' AND "district"='south carolina 5';

Question: Which party was joseph t. johnson in?
SQL: SELECT "party" FROM "south_carolina" WHERE "incumbent"='joseph t. johnson';

Question: Which party was first elected in 1898?
SQL: SELECT "party" FROM "south_carolina" WHERE "first_elected"='1898';

Question: Which district won when first elected in 1900?
SQL: SELECT "district" FROM "south_carolina" WHERE "first_elected"='1900';