query-548e84b43694f660aef49a41675809f8
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?BDI1 ?BDI2
WHERE
{
?item p:P3318 ?BDI1_statement .
?item p:P3318 ?BDI2_statement .
?BDI1_statement ps:P3318 ?BDI1 .
?BDI2_statement ps:P3318 ?BDI2 .
FILTER (STR(?BDI1_statement) < STR(?BDI2_statement))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?BDI1"):::projected
v1("?BDI1_statement")
v5("?BDI2"):::projected
v2("?BDI2_statement")
v3("?item"):::projected
f0[["str(?BDI1_statement) < str(?BDI2_statement)"]]
f0 --> v1
f0 --> v2
v3 --"p:P3318"--> v1
v3 --"p:P3318"--> v2
v1 --"p:statement/P3318"--> v4
v2 --"p:statement/P3318"--> v5