Question: Which one lies higher related to sea level, South Dakota or Nebraska (the one that shares border with South Dakota)
Choices: Iowa
Colorado
New Mexico
Nebraska
Hawaii
New Jersey
Massachusetts
Florida
South Dakota
California
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Dakota" .  } UNION { ?e <pred:name> "Nebraska" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "South Dakota" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: South Dakota
function: Find
inputs: South Dakota
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
greater
Answer: Nebraska