Add aggregations

I'm creating again a PR adding aggregations used to filter queries.
i might lack context, but adding methods to interfaces is a hard BC break for anything implementing the interface. if we can expect anything outside this bundle to implement this interface, this would be a problem.