CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR)

Which Party has a First elected smaller than 1878, and a District of south carolina 3?
SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"
SELECT "party" FROM "table_name_4" WHERE "district" = "south carolina 3" AND "first_elected" < 1878