Question: Which among the human settlements that share a border with Verona (the one that shares border with West Orange) has the smallest elevation (above sea level)?
Choices: Montclair
Wexford
Whanganui
Verona
West Orange
Livingston
Princeton
Red Bank
North Hollywood
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> "West Orange" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: West Orange
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
smallest
Answer: Montclair