Question: How many New York cities are an administrative division of Allegany County (the one whose ISNI is 0000 0004 0405 4567) or the burial place of Ryan Gosling?
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> "city of New York" .  { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Allegany County" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0004 0405 4567" .  } UNION { ?e_1 <place_of_burial> ?e . ?e_1 <pred:name> "Ryan Gosling" .  } }
Program:
function: Find
inputs: Allegany County
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0004 0405 4567
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: city of New York
function: Find
inputs: Ryan Gosling
function: Relate
dependencies: 4
inputs: place of burial
forward
function: FilterConcept
dependencies: 5
inputs: city of New York
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 0