Question: How many feature films use the superpower that is the main subject of "Harry Potter and the Prisoner of Azkaban" (the one whose script was written by J. K. Rowling)?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <uses> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "superpower" . ?e_2 <main_subject> ?e_1 . ?e_2 <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e_2 <screenwriter> ?e_3 . ?e_3 <pred:name> "J. K. Rowling" .   }
Program:
function: Find
inputs: J. K. Rowling
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: superpower
function: Relate
dependencies: 5
inputs: uses
backward
function: FilterConcept
dependencies: 6
inputs: feature film
function: Count
dependencies: 7