How group by var variables

Can dgraph be grouped by value variable??

the relationship like this:

query: Group the results by Persons and Tags, then count the Messages by a certain Person having a certain Tag.

I want to count by person and tag, I can find everyone’s tag, but I couldn’t use @groupby by tag and person.
what should I do??