Question: Which community of people shares a border with Orange (whose elevation is 59 meters above sea level)?
Choices:
West Orange
Wexford
Ridgewood
North Hollywood
Red Bank
Livingston
Belleville
Verona
Princeton
Montclair
Program:
function: Find
inputs: Orange
function: FilterNum
dependencies: 0
inputs: elevation above sea level
59 metre
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: human settlement
function: SelectAmong
dependencies: 3
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Orange" . ?e_1 <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "59"^^xsd:double . ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: West Orange