Question: Which New Jersey city that shares a border with Manhattan (the one that contains Juilliard School) has the largest elevation (above sea level)?
Choices:
Perth Amboy
Atlantic City
Elizabeth
Hoboken
Trenton
Jersey City
East Orange
Bayonne
Passaic
Plainfield
Answer: Jersey City
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Juilliard School" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Juilliard School
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Manhattan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest