Question: How many high schools are in Manhattan whose FIPS 6-4 (US counties) is 36061 or were attended by James Cagney?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "high school" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Manhattan" . ?e_1 <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "36061" .  } UNION { ?e_1 <educated_at> ?e . ?e_1 <pred:name> "James Cagney" .  } }
Program:
function: Find
inputs: Manhattan
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
36061
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: high school
function: Find
inputs: James Cagney
function: Relate
dependencies: 4
inputs: educated at
forward
function: FilterConcept
dependencies: 5
inputs: high school
function: Or
dependencies: 3
6
function: Count
dependencies: 7