Question: How many secondary schools are headquartered in Manhattan, where Fyvush Finkel died, or are allied with Poland?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "secondary school" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_2 <place_of_death> ?e_1 . ?e_2 <pred:name> "Fyvush Finkel" .  } UNION { ?e <allegiance> ?e_1 . ?e_1 <pred:name> "Poland" .  } }
Program:
function: Find
inputs: Fyvush Finkel
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: Manhattan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: secondary school
function: Find
inputs: Poland
function: Relate
dependencies: 6
inputs: allegiance
backward
function: FilterConcept
dependencies: 7
inputs: secondary school
function: Or
dependencies: 5
8
function: Count
dependencies: 9