Hello I was reviewing the documentation
https://docs.phalcon.io/en/latest/reference/models.html#generating-calculations
in a query I can get added value, sumed or averaged, or counted by a group, but the model must create an object for each sum or count. You can create an object that has a number average ,sums and count