Question: How many human settlements where the Institute for Advanced Study is situated are in Essex County, the location of Newark?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Institute for Advanced Study" .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Essex County" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Newark" .  }
Program:
function: Find
inputs: Institute for Advanced Study
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: human settlement
function: Find
inputs: Newark
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Essex County
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: human settlement
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0