Which Party has a First elected smaller than 1878, and a District of south carolina 3?
CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (party VARCHAR, first_elected VARCHAR, district VARCHAR) Question: Which Party has a First elected smaller than 1878, and a District of south carolina 3? [/INST] SELECT party FROM table_name_4 WHERE first_elected < 1878 AND district = "south carolina 3" </s>