Question: Of seas with Montenegro as their basin country, which is shallowest?
Choices:
North Sea
Mediterranean Sea
The Help
Adriatic Sea
Aegean Sea
Middletown
Caribbean Sea
Green Bay
English Channel
Hungary
Program:
function: Find
inputs: Montenegro
function: Relate
dependencies: 0
inputs: basin country
backward
function: FilterConcept
dependencies: 1
inputs: sea
function: SelectAmong
dependencies: 2
inputs: vertical depth
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sea" . ?e <basin_country> ?e_1 . ?e_1 <pred:name> "Montenegro" .  ?e <vertical_depth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Adriatic Sea