Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?
CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
SELECT "party" FROM "south_carolina" WHERE "result"='retired democratic hold' AND "first_elected"<1884 AND "incumbent"='samuel dibble';