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