Show party names and the number of events for each party.
create table party (party_name varchar, party_id varchar, PRIMARY KEY (party_name)); create table party_events (party_id varchar, PRIMARY KEY (party_id))
select t2.party_name, count(*) from party_events as t1 join party as t2 on t1.party_id = t2.party_id group by t1.party_id