Question: How many television series episodes are part of Constantine (the one whose producer is David S. Goyer) or Carlton Cuse wrote the script?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "Constantine" . ?e_1 <producer> ?e_2 . ?e_2 <pred:name> "David S. Goyer" .  } UNION { ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Carlton Cuse" .  } }
Program:
function: Find
inputs: David S. Goyer
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
backward
function: FilterConcept
dependencies: 4
inputs: television series episode
function: Find
inputs: Carlton Cuse
function: Relate
dependencies: 6
inputs: screenwriter
backward
function: FilterConcept
dependencies: 7
inputs: television series episode
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2