query-4b044e2349a07d56e08bd46a67b2995b
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?a ?b WHERE {
VALUES ?a { wd:Q172 wd:Q44013 wd:Q44198 }
VALUES ?b { wd:Q172 wd:Q44013 wd:Q44198 }
?a wdt:P47 ?b.
FILTER (str(?a) < str(?b))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?a"):::projected
v3("?b"):::projected
f0[["str(?a) < str(?b)"]]
f0 --> v3
f0 --> v3
bind1[/VALUES ?a/]
bind1-->v3
bind10(["wd:Q172"])
bind10 --> bind1
bind11(["wd:Q44013"])
bind11 --> bind1
bind12(["wd:Q44198"])
bind12 --> bind1
bind2[/VALUES ?b/]
bind2-->v3
bind20(["wd:Q172"])
bind20 --> bind2
bind21(["wd:Q44013"])
bind21 --> bind2
bind22(["wd:Q44198"])
bind22 --> bind2
v3 --"wdt:P47"--> v3