query-6138163c3601e12fc615d19786afad35
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?coord ?geoprecision1 ?geoprecision2 WHERE {
?item wdt:P31 wd:Q16970 .
?item wdt:P17 wd:Q142 .
?item p:P625 ?p625 .
?p625 ps:P625 ?coord .
?p625 psv:P625 ?psv625 .
?psv625 wikibase:geoPrecision ?geoprecision1 .
?psv625 wikibase:geoPrecision ?geoprecision2 .
FILTER(?geoprecision1<?geoprecision2)
}
ORDER BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coord"):::projected
v2("?geoprecision1"):::projected
v3("?geoprecision2"):::projected
v1("?item"):::projected
v4("?p625")
v6("?psv625")
c2(["wd:Q16970"]):::iri
c4(["wd:Q142"]):::iri
f0[["?geoprecision1 < ?geoprecision2"]]
f0 --> v2
f0 --> v3
v1 --"p:direct/P31"--> c2
v1 --"p:direct/P17"--> c4
v1 --"p:P625"--> v4
v4 --"p:statement/P625"--> v5
v4 --"p:statement/value/P625"--> v6
v6 --"wikibase:geoPrecision"--> v2
v6 --"wikibase:geoPrecision"--> v3