Database: local_govt_in_alabama
Question: How many events have each participants attended? List the participant id, type and the number.
SQL:
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