Question: How many TV production companies are represented by the website www.endemol.nl or headquartered in Chicago, setting of Primal Fear?
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> "TV production company" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.endemol.nl" .  } UNION { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Chicago" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Primal Fear" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.endemol.nl
function: FilterConcept
dependencies: 1
inputs: TV production company
function: Find
inputs: Primal Fear
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Chicago
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: headquarters location
backward
function: FilterConcept
dependencies: 7
inputs: TV production company
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2