query-8187eacb21c757753bd3e847e152f623
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?value1 ?value2
WHERE
{
?item p:P10404 ?stat1.
?stat1 ps:P10404 ?value1 .
?item p:P10404 ?stat2.
?stat1 ps:P10404 ?value2 .
FILTER (STR(?stat1) > STR(?stat2))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?stat1")
v2("?stat2")
v4("?value1"):::projected
v5("?value2"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["str(?stat1) > str(?stat2)"]]
f0 --> v1
f0 --> v2
v3 --"p:P10404"--> v1
v1 --"p:statement/P10404"--> v4
v3 --"p:P10404"--> v2
v1 --"p:statement/P10404"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end