human
Schema:
election (Election_ID, Representative_ID, Date, Votes, Vote_Percent, Seats, Place)
representative (Representative_ID, Name, State, Party, Lifespan)
Please answer with SQL.
assistant
Sure, I understand.
human
Show me the names of all parties of the representative.
assistant
SELECT DISTINCT Party FROM representative;
human
Show me the names of all the representatives.
assistant
SELECT Name FROM representative;
human
What are their votes?
assistant
SELECT T2.Name , T1.votes FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ;