Task: Text to Code
Input (English): What is the average number of votes of representatives from party "Republican"?
Output (English): SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  "Republican"