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

What is the First elected that has a republican party and california 4?
SELECT first_elected FROM table_name_4 WHERE party = "republican" AND district = "california 4"
SELECT "first_elected" FROM "table_name_4" WHERE "california 4" = "district" AND "party" = "republican"