Question: Which has higher elevation above sea level, Columbia River or Amazon (the one whose length is 6436 kilometre)?
Choices: Missouri River
Hudson River
Ohio River
Danube
Columbia River
Lisbon
Amazon
River Thames
Rhine
Mississippi River
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Columbia River" . } UNION { ?e <pred:name> "Amazon" . ?e <length> ?pv_1 . ?pv_1 <pred:unit> "kilometre" . ?pv_1 <pred:value> "6436"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Columbia River
function: Find
inputs: Amazon
function: FilterNum
dependencies: 1
inputs: length
6436 kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
Answer: Columbia River