Question: Which one has more elevation above sea level among the human settlements that shares border with Verona (the one that shares border with Montclair)?
Choices: North Hollywood
Montclair
Wexford
West Orange
Livingston
Verona
Belleville
Whanganui
Princeton
Ridgewood
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Verona" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Montclair" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Montclair
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Verona
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: human settlement
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest
Answer: West Orange