You cannot use group by nor agregates on entities and collection because entities stand for entity records, which you can fetch, save, delete... while group by and aggregates involve merging the data, which is not consistent with the nature of the data entities can hold.
So when looking for groupby clauses, you should turn to typedlists.
One thing that you can do with entities though is applying expressions to the fields in accordance with their type. Then, with a combination of predicates you might be able to get specially carved data, but keep in mind that entities are real objects in the first place, and typedlists dynamic custom views.