Question: How many feature films are based on Harry Potter and the Prisoner of Azkaban (whose OCLC control number is 225632887) or includes cast member Tilda Swinton?
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> "feature film" .  { ?e <based_on> ?e_1 . ?e_1 <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e_1 <OCLC_control_number> ?pv . ?pv <pred:value> "225632887" .  } UNION { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tilda Swinton" .  } }
Program:
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: FilterStr
dependencies: 0
inputs: OCLC control number
225632887
function: Relate
dependencies: 1
inputs: based on
backward
function: FilterConcept
dependencies: 2
inputs: feature film
function: Find
inputs: Tilda Swinton
function: Relate
dependencies: 4
inputs: cast member
backward
function: FilterConcept
dependencies: 5
inputs: feature film
function: Or
dependencies: 3
6
function: Count
dependencies: 7