Question: What New Jersey county has the capital Newton whose elevation above sea level is 202 meters and borders Monroe County that borders Luzerne County?
Choices:
Warren County
Morris County
Monmouth County
Burlington County
Gloucester County
Sussex County
Bergen County
Cumberland County
Passaic County
Hunterdon County
Answer: Sussex County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Newton" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "202"^^xsd:double .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Monroe County" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Luzerne County" .  }
Program:
function: Find
inputs: Newton
function: FilterNum
dependencies: 0
inputs: elevation above sea level
202 metre
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of New Jersey
function: Find
inputs: Luzerne County
function: Relate
dependencies: 4
inputs: shares border with
backward
function: Find
inputs: Monroe County
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: shares border with
backward
function: FilterConcept
dependencies: 8
inputs: county of New Jersey
function: And
dependencies: 3
9
function: What
dependencies: 10