Question: What are the number of associations that are located in City of Westminster or whose headquarter location is Philadelphia (the one that is the headquarter location of Metropolis Records) ?
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> "association" .  { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "City of Westminster" .  } UNION { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Philadelphia" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Metropolis Records" .  } }
Program:
function: Find
inputs: City of Westminster
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: association
function: Find
inputs: Metropolis Records
function: Relate
dependencies: 3
inputs: headquarters location
forward
function: Find
inputs: Philadelphia
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: headquarters location
backward
function: FilterConcept
dependencies: 7
inputs: association
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2