Question: How many TV production companies are the production studio of The X-Files (that has James Remar as a cast member) or have the ISNI 0000 0000 9350 6633?
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> "TV production company" .  { ?e_1 <production_company> ?e . ?e_1 <pred:name> "The X-Files" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "James Remar" .  } UNION { ?e <ISNI> ?pv . ?pv <pred:value> "0000 0000 9350 6633" .  } }
Program:
function: Find
inputs: James Remar
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The X-Files
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: production company
forward
function: FilterConcept
dependencies: 4
inputs: TV production company
function: FindAll
function: FilterStr
dependencies: 6
inputs: ISNI
0000 0000 9350 6633
function: FilterConcept
dependencies: 7
inputs: TV production company
function: Or
dependencies: 5
8
function: Count
dependencies: 9