I want to group some specific records by their pid (only groups) if the number of group events are more than 3.
pid
Example:
Here the num