user: ### NOW ANSWER:
Question: What is the First elected that has a Republican party and California 4?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['California 1', 'William Rosecrans', 'Democratic', '1880', 'Re-elected']
SQL:

assistant: SELECT "First elected" FROM "Table" WHERE "Party" = 'Republican' AND "District" = 'California 4';