Question: In terms of NJ cities that border Jersey City, which one has the lowest (above sea level) elevation?
Choices:
Jersey City
Paterson
Newark
Hoboken
Plainfield
Passaic
Atlantic City
Elizabeth
Bayonne
Perth Amboy
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
smallest
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 ?v LIMIT 1
Answer: Bayonne