Question: Which river with Canada as a basin country has the biggest drainage area?
Choices:
Columbia River
Amazon
Downing College
Hudson River
Missouri River
Mississippi River
Danube
Rhine
Ohio River
River Thames
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: basin country
backward
function: FilterConcept
dependencies: 1
inputs: river
function: SelectAmong
dependencies: 2
inputs: watershed area
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 <watershed_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mississippi River