question: What is the First elected that has a republican party and california 4?
answer: SELECT first_elected FROM table_name_4 WHERE party = "republican" AND district = "california 4"
context: CREATE TABLE table_name_4 (first_elected VARCHAR, party VARCHAR, district VARCHAR)