I need to retrieve a list of top ten highest points on Earth using SPARQL on Wikidata
SELECT ?mountain ?mountainLabel WHERE {
?mountain wdt:P31 wd:Q8502.
OPTIONAL { ?mountain wdt:P610 ?highest_point. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 10
I expect the output to be mountain QIDs
in the first column, names of the mountains
in the second column, and heights
in the third column