Question: How many secondary schools are located in The Bronx, or, are the employer of US citizen John Byrne ?
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> "secondary school" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "The Bronx" .  } UNION { ?e_1 <employer> ?e . ?e_1 <pred:name> "John Byrne" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: The Bronx
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: secondary school
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country of citizenship
backward
function: Find
inputs: John Byrne
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: employer
forward
function: FilterConcept
dependencies: 7
inputs: secondary school
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1