Question: Is the elevation lower in Rhode Island or in Nebraska, which borders Iowa?
Choices: Rhode Island
New Jersey
Colorado
Iowa
Illinois
Hawaii
California
Nebraska
Florida
New Mexico
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rhode Island" .  } UNION { ?e <pred:name> "Nebraska" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Iowa" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Rhode Island
function: Find
inputs: Iowa
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Nebraska
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
Answer: Rhode Island