Question: Which river whose lowest point is Illinois (that is the lowest point of the Ohio River) has the lowest discharge?
Choices:
River Thames
Danube
Rhine
Mississippi River
Laurence Olivier
Amazon
Ohio River
Hudson River
Columbia River
Missouri River
Program:
function: Find
inputs: Ohio River
function: Relate
dependencies: 0
inputs: lowest point
backward
function: Find
inputs: Illinois
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: lowest point
forward
function: FilterConcept
dependencies: 4
inputs: river
function: SelectAmong
dependencies: 5
inputs: discharge
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e_1 <lowest_point> ?e . ?e_1 <pred:name> "Illinois" . ?e_1 <lowest_point> ?e_2 . ?e_2 <pred:name> "Ohio River" .  ?e <discharge> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ohio River