What is the {lagoon} with the {MIN(residence time of water)} whose {country} is {Chile}  ?
What lagoon in Chile has the lowest residence time of water?
What is the lagoon with the lowest residence time of water whose country is Chile?
SELECT ?a WHERE { ?a rdf:type ontology:lagoon . ?a property:residence_time_of_water ?k . ?a property:country resource:Chile }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q187223>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3020>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q298> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q187223 . ?ent wdt:P3020 ?obj . ?ent wdt:P17 wd:Q298} ORDER BY ASC(?obj)LIMIT 5 