Question: What city in New Jersey that shares a border with Jersey City has the highest elevation above sea level?
Choices:
Perth Amboy
Bayonne
Jersey City
Newark
Plainfield
Paterson
East Orange
Passaic
Atlantic City
Hoboken
Program:
function: Find
inputs: Jersey City
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Jersey City" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Newark