CREATE TABLE representative (representative_id DECIMAL, name TEXT, state TEXT, party TEXT, lifespan TEXT)
CREATE TABLE election (election_id DECIMAL, representative_id DECIMAL, date TEXT, votes DECIMAL, vote_percent DECIMAL, seats DECIMAL, place DECIMAL)

What is the average number of votes of representatives from party 'Republican'?
SELECT AVG(T1.votes) FROM election AS T1 JOIN representative AS T2 ON T1.representative_id = T2.representative_id WHERE T2.party = "Republican"
SELECT AVG("T1"."votes") FROM "election" AS "T1" JOIN "representative" AS "T2" ON "Republican" = "T2"."party" AND "T1"."representative_id" = "T2"."representative_id"