Question: How many 3D films are a part of Infernal Affairs (that contains Infernal Affairs III) or have the director John Osborne (whose date of birth is 1844)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "3D film" .  { ?e <part_of_the_series> ?e_1 . ?e_1 <pred:name> "Infernal Affairs" . ?e_2 <part_of_the_series> ?e_1 . ?e_2 <pred:name> "Infernal Affairs III" .  } UNION { ?e <director> ?e_1 . ?e_1 <pred:name> "John Osborne" . ?e_1 <date_of_birth> ?pv . ?pv <pred:year> 1844 .  } }
Program:
function: Find
inputs: Infernal Affairs III
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: Infernal Affairs
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
backward
function: FilterConcept
dependencies: 4
inputs: 3D film
function: Find
inputs: John Osborne
function: FilterYear
dependencies: 6
inputs: date of birth
1844
=
function: Relate
dependencies: 7
inputs: director
backward
function: FilterConcept
dependencies: 8
inputs: 3D film
function: Or
dependencies: 5
9
function: Count
dependencies: 10
Answer: 0