query-e5cf36c47e4ad7f5c7494caef6dfe1f1
Oleano cases
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item1 ?item2 ?BDI
WHERE
{
?item1 p:P3318 / ps:P3318 ?BDI .
?item2 p:P3318 / ps:P3318 ?BDI .
FILTER (STR(?item1) < STR(?item2))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?BDI"):::projected
v1("?item1"):::projected
v2("?item2"):::projected
a1((" "))
a2((" "))
f0[["str(?item1) < str(?item2)"]]
f0 --> v1
f0 --> v2
v1 --"p:P3318"--> a1
a1 --"p:statement/P3318"--> v3
v2 --"p:P3318"--> a2
a2 --"p:statement/P3318"--> v3