reteplayground
Counterfactual

🪄 On the stack: Bolt → Bears (state S2)

On the stackTargetCast by
Lightning Bolt (on the stack)Grizzly BearsAlice
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 1 row · 5.0 ms · no server, no download — the query runs in your browser.

The query

PREFIX mtgg: <https://w3id.org/rete/mtg/game#> PREFIX schema: <http://schema.org/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?spell ?targetCard ?controller WHERE { ?m mtgg:inState <https://w3id.org/rete/mtg/game/s2> ; mtgg:object ?sp ; mtgg:zone <https://w3id.org/rete/mtg/game/stack> . ?sp rdfs:label ?spell ; mtgg:target ?t ; mtgg:controller ?ctrl . ?t mtgg:ofCard ?tc . ?tc schema:name ?targetCard . ?ctrl rdfs:label ?controller . }

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