Question: Does the Missouri River or the Danube have the higher discharge?
Choices:
Columbia River
Rhine
Hudson River
River Thames
Shrek
Danube
Ohio River
Missouri River
Amazon
Mississippi River
Program:
function: Find
inputs: Missouri River
function: Find
inputs: Danube
function: SelectBetween
dependencies: 0
1
inputs: discharge
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Missouri River" .  } UNION { ?e <pred:name> "Danube" .  } ?e <discharge> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Danube