Question: Which is longer, the Ohio River or the Columbia River?
Choices:
Ohio River
Mississippi River
The Good Wife
Hudson River
Danube
Columbia River
Amazon
Rhine
Missouri River
River Thames
Program:
function: Find
inputs: Ohio River
function: Find
inputs: Columbia River
function: SelectBetween
dependencies: 0
1
inputs: length
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ohio River" .  } UNION { ?e <pred:name> "Columbia River" .  } ?e <length> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Columbia River