reteplayground
Aggregate

🥅 Goals per group stage vs knockout

StageGoals
group214
round_of_3242
round_of_1623
quarter_final12
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 4 rows · 2.0 ms · no server, no download — the query runs in your browser.

The query

PREFIX wc: <https://w3id.org/rete/worldcup#> SELECT ?stage (COUNT(?g) AS ?goals) WHERE { ?g a wc:Goal ; wc:inMatch ?m . ?m wc:stage ?stage . } GROUP BY ?stage ORDER BY DESC(?goals)

rete playground · documentation · github.com/caviri/rete