What is the {dam failure} with the {MAX(number of missing)} whose {country} is {Brazil}  ?
Name the dam failure which occurred in Brazil that had the greatest amount of unaccounted for individuals.
Which Brazilian dam failure left the most missing people?
SELECT ?m WHERE { ?m property:number_of_missing ?w . ?m property:country resource:Brazil . ?m rdf:type ontology:dam_failure }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1033074>.

?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/P1446>.
?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/Q155> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1033074 . ?ent wdt:P1446 ?obj . ?ent wdt:P17 wd:Q155 } ORDER BY DESC(?obj)LIMIT 5 