What is the {vallis} with the {MAX(diameter)} whose {location} is {Hellas quadrangle}  ?
Within the hellas quadrangle, what is the vallis with the largest diameter?
What is the vallis with the largest diamater and located in the hellas quadrangle?
SELECT ?d WHERE { ?d property:location resource:Hellas_quadrangle . ?d rdf:type ontology:vallis . ?d property:diameter ?h }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2249285>.

?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/P2386>.
?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/P276> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3054539> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q2249285 . ?ent wdt:P2386 ?obj . ?ent wdt:P276 wd:Q3054539 } ORDER BY DESC(?obj)LIMIT 5 