What is the {island} with the {MAX(distance from river mouth)} whose {located in the administrative territorial entity} is {Oryahovo Municipality}  ?
What is the farthest island from the river mouth from the Oryahovo area?
Name the island with the longest distance from the river mouth from Oryahovo Municipality
SELECT ?i WHERE { ?i property:located_in_the_administrative_territorial_entity resource:Oryahovo_Municipality . ?i property:distance_from_river_mouth ?h . ?i rdf:type ontology:island }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q23442>.

?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/P2148>.
?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/Q2628864> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q23442 . ?ent wdt:P2148 ?obj . ?ent wdt:P131 wd:Q2628864 } ORDER BY DESC(?obj)LIMIT 5 