Question: How many counties are there in New York (the narrative location of Hyde Park on Hudson)?
Choices: 39
40
41
42
43
44
45
46
47
48
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "New York" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Hyde Park on Hudson" .   }
Program:
function: Find
inputs: Hyde Park on Hudson
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: New York
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: Count
dependencies: 5
Answer: 45