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

Question: Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?
SQL: SELECT "party" FROM "south_carolina" WHERE "result"='retired democratic hold' AND "first_elected"<1884 AND "incumbent"='samuel dibble';

Question: Which district had a first elected in 1882 with a result of re-elected?
SQL: SELECT "district" FROM "south_carolina" WHERE "first_elected"=1882 AND "result"='re-elected';