How to query nested array of objects and group & count by one of its properties? Tips?

I am pretty sure you may apply the same solution as

1 Like