What is the {island} with the {MIN(distance from river mouth)} whose {instance of} is {island}  ?
What is the island closest to the mouth of the river?
Name the island closest to the river mouth.
SELECT ?b WHERE { ?b rdf:type ontology:island . ?b property:distance_from_river_mouth ?s . ?b 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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q23442> .

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