What is the {lagoon} with the {MAX(residence time of water)} ?
The lagoon with the highest resisdence time of water is?
WHICH LAGOON HAVE THE HIGHEST RESISDENCE TIME OF WATER?
SELECT ?k WHERE { ?k property:residence_time_of_water ?f . ?k rdf:type ontology:lagoon }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q187223>.
?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/P3020>.
?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:Q187223 . ?ent wdt:P3020 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Zeekoevlei