instruction: How many events have each participants attended? List the participant id, type and the number.
response: SELECT T1.participant_id, T1.participant_type_code, COUNT(*) FROM participants AS T1 JOIN participants_in_events AS T2 ON T1.participant_id = T2.participant_id GROUP BY T1.participant_id