query-9097ab17cb8dde70411434b76885aeac
This only gets values in metres, but takes almost twice as long:
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 p: <http://www.wikidata.org/prop/>
SELECT distinct ?elevation ?item
WHERE
{?item wdt:P31 wd:Q8502.
?item p:P2044/psv:P2044 ?hnode.
?hnode wikibase:quantityUnit wd:Q11573.
?hnode wikibase:quantityAmount ?elevation.
}order by desc(?elevation) limit 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?elevation"):::projected
v3("?hnode")
v2("?item"):::projected
a1((" "))
c6(["wd:Q11573"]):::iri
c2(["wd:Q8502"]):::iri
v2 --"p:direct/P31"--> c2
v2 --"p:P2044"--> a1
a1 --"p:statement/value/P2044"--> v3
v3 --"wikibase:quantityUnit"--> c6
v3 --"wikibase:quantityAmount"--> v1