Question: Among the rivers that have Canada as a basin country, which one has the largest discharge?
Choices:
Amazon
Ohio River
Mississippi River
Hudson River
Missouri River
Hi-NRG
River Thames
Rhine
Columbia River
Danube
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: basin country
backward
function: FilterConcept
dependencies: 1
inputs: river
function: SelectAmong
dependencies: 2
inputs: discharge
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e <basin_country> ?e_1 . ?e_1 <pred:name> "Canada" .  ?e <discharge> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mississippi River