Added avg aggregation with multiple group by operations in the pipeline