Question: Which administrative territorial entity shares a border with Rockingham County (which shares a border with Merrimack County) and contains the administrative division Concord (whose above sea level elevation is 88 metres)?
Choices: Kent County
Washoe County
Hillsborough County
African Union
Delaware County
Lee County
Merrimack County
Greene County
San Juan County
Cass County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Rockingham County" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Merrimack County" .  ?e <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Concord" . ?e_3 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "88"^^xsd:double .  }
Program:
function: Find
inputs: Merrimack County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Rockingham County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: Find
inputs: Concord
function: FilterNum
dependencies: 6
inputs: elevation above sea level
88 metre
=
function: Relate
dependencies: 7
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 8
inputs: administrative territorial entity
function: And
dependencies: 5
9
function: What
dependencies: 10
Answer: Merrimack County