Use cartesian product calculation from prolog (forall...) and remove
manual implementation.
Avoid duplicates in complex event.