What is the {monument} with the {MAX(lighthouse range)} ?
What monument has the maximum lighthouse range?
WHICH IS THE MONUMENT WITH THE MAXIMUM LIGHTHOUSE RANGE
SELECT ?y WHERE { ?y rdf:type ontology:monument . ?y property:lighthouse_range ?o }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4989906>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2929>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q4989906 . ?ent wdt:P2929 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Cabo de Gata Lighthouse Tower of Hercules Faro cabo de palos Maspalomas Lighthouse Castillo de San Telmo