Question: The producer of Rear Window, with Alfred Hitchcock as a cast member, directed how many visual artworks?
Choices:
14
15
16
17
18
19
20
21
22
23
Program:
function: Find
inputs: Alfred Hitchcock
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rear Window
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: producer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: director
backward
function: FilterConcept
dependencies: 6
inputs: visual artwork
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <director> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <producer> ?e_1 . ?e_2 <pred:name> "Rear Window" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Alfred Hitchcock" .   }
Answer: 19