Question: How many novels were among notable works of a person that is the author of The Scarlet Letter (the one that has Gary Oldman as a cast member) ?
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> "novel" . ?e_1 <notable_work> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <after_a_work_by> ?e_1 . ?e_2 <pred:name> "The Scarlet Letter" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Gary Oldman" .   }
Program:
function: Find
inputs: Gary Oldman
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Scarlet Letter
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: notable work
forward
function: FilterConcept
dependencies: 6
inputs: novel
function: Count
dependencies: 7
Answer: 1