Question: How many movies comprise the Die Hard series that includes Die Hard with a Vengeance or have make-up by Eric Fellner?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" .  { ?e_1 <has_part> ?e . ?e_1 <pred:name> "Die Hard" . ?e_2 <part_of_the_series> ?e_1 . ?e_2 <pred:name> "Die Hard with a Vengeance" .  } UNION { ?e <make-up_artist> ?e_1 . ?e_1 <pred:name> "Eric Fellner" .  } }
Program:
function: Find
inputs: Die Hard with a Vengeance
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: Die Hard
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: film
function: Find
inputs: Eric Fellner
function: Relate
dependencies: 6
inputs: make-up artist
backward
function: FilterConcept
dependencies: 7
inputs: film
function: Or
dependencies: 5
8
function: Count
dependencies: 9