I think you gonna need multiple blocks. Cuz I think that multiple groupby is an “AND” logic not a “OR” or something.
If we had loops like foreach, this would create a better result.
There’s no such thing in Dgraph. You have to deal that logic in your application level.