Question: Which area has higher elevation above sea level, Wexford or Livingston (the one that shares border with West Orange)?
Choices:
Montclair
West Orange
Verona
Whanganui
North Hollywood
Princeton
Livingston
Belleville
Red Bank
Ridgewood
Answer: Livingston
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wexford" .  } UNION { ?e <pred:name> "Livingston" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "West Orange" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wexford
function: Find
inputs: West Orange
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Livingston
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater