user: Question: Which Party has a First elected smaller than 1878, and a District of South Carolina 3?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result']
Types: ['text', 'text', 'text', 'real', 'text']
Sample row: ['South Carolina 1', 'John S. Richardson', 'Democratic', 1878.0, 'Re-elected']
SQL:

assistant: SELECT "Party" FROM "Table" WHERE "First elected" < 1878.0 AND "District" = 'South Carolina 3';