Question: How many record labels have a headquarters location in Philadelphia (that shares a border with Camden) or the Matador Records label?
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> "record label" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Philadelphia" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Camden" .  } UNION { ?e <record_label> ?e_1 . ?e_1 <pred:name> "Matador Records" .  } }
Program:
function: Find
inputs: Camden
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Philadelphia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: record label
function: Find
inputs: Matador Records
function: Relate
dependencies: 6
inputs: record label
backward
function: FilterConcept
dependencies: 7
inputs: record label
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 3