Sorry the delay. Lots going on. Well, this is not possible. I mean, The best and precise way of checking the scores is individually. If you use the same variable for a wide query(mean, looking for all posts and trying to aggregate for each) this wont work. I have an issue to introduce “foreach” and that would solve that problem. As Dgraph would apply the same query, but individually. That means for each node found in the root query Dgraph would isolate the variables.
Until there you have to narrow your query.
Cheers.
PS. Dgraph queries are “mapped based”. You may be able to aggregate each of the posts using the same structure(it depends of the levels too). But the Root needs to be the same map as the other blocks.
Share some JSON examples of your data and I can explore it for you.