Question: How many dramas whose IAB code is 642 or that is the genre of Benjamin Franklin whose number of episodes is 4?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: IAB code
642
function: FilterConcept
dependencies: 1
inputs: drama
function: Find
inputs: Benjamin Franklin
function: FilterNum
dependencies: 3
inputs: number of episodes
4
=
function: Relate
dependencies: 4
inputs: genre
forward
function: FilterConcept
dependencies: 5
inputs: drama
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "drama" .  { ?e <IAB_code> ?pv . ?pv <pred:value> "642" .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "Benjamin Franklin" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4"^^xsd:double .  } }
Answer: 2