Question: Which of the water areas, that are a part of the Mediterranean Sea, has the largest vertical depth?
Choices:
Green Bay
Adriatic Sea
The Producers
Mediterranean Sea
Empire State Building
Caribbean Sea
Miles "Tails" Prower
North Sea
English Channel
Aegean Sea
Program:
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 0
inputs: has part
forward
function: FilterConcept
dependencies: 1
inputs: water area
function: SelectAmong
dependencies: 2
inputs: vertical depth
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "water area" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Mediterranean Sea" .  ?e <vertical_depth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Aegean Sea