Added method to cover Nested aggregation with group-by