What is the {village of Ukraine} with the {MAX(elevation above sea level)} whose {located in the administrative territorial entity} is {Staryi Sambir Raion}  ?
Give me the name of the village of Ukraine with the highest elevation above sea level who is located in the administrative territorial entity is Staryi Sambir Raion
What is the village of Ukraine with the maximum elevation above sea level whose located in the administrative territorial entity is Staryi Sambir Raion?
SELECT ?p WHERE { ?p rdf:type ontology:village_of_Ukraine . ?p property:elevation_above_sea_level ?l . ?p property:located_in_the_administrative_territorial_entity resource:Staryi_Sambir_Raion }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q21672098>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q21672098 . ?ent wdt:P2044 ?obj . ?ent wdt:P131 wd:Q2599775 } ORDER BY DESC(?obj)LIMIT 5 
Nedilna Tykha Velika Volosianka Sosnivka Ploske