Question: How many film series include X-Men (the one that has Anna Paquin as a cast member) as a part or have a number of episodes of less than 8700?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Anna Paquin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: film series
function: FindAll
function: FilterNum
dependencies: 6
inputs: number of episodes
8700
<
function: FilterConcept
dependencies: 7
inputs: film series
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film series" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "X-Men" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Anna Paquin" .  } UNION { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "8700"^^xsd:double ) .  } }
Answer: 4