Question: how many purchases did each member make?
SQL: SELECT T1.member_id, count ( * )  FROM purchase AS T1 JOIN member AS T2 ON T1.member_id   =   T2.member_id group by T1.member_id