What is the {arch dam} with the {MAX(annual energy output)} ?
What arch damn as the highest annual energy output?
Which arch dam has the highest annual energy output?
SELECT ?a WHERE { ?a rdf:type ontology:arch_dam . ?a property:annual_energy_output ?h }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q890545>.
?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/P4131>.
?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:Q890545 . ?ent wdt:P4131 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Xiluodu Dam Victoria Dam Bin el Ouidane Dam Eguzon Dam Varosa Dam