Calculate the Number of Intersections between Adjacent Subsets after Grouping — From SQL to SPL #14

Problem description & analysis:
A certain database table records the execution status of a project, with multiple people participating in the project every day, and one person can partici...