Question: How many crimes distinct from murder are the primary topic of the spy film The Sum of All Fears?
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> "crime" . ?e <different_from> ?e_1 . ?e_1 <pred:name> "murder" .  ?e_2 <main_subject> ?e . ?e_2 <pred:name> "The Sum of All Fears" . ?e_2 <genre> ?e_3 . ?e_3 <pred:name> "spy film" .  }
Program:
function: Find
inputs: murder
function: Relate
dependencies: 0
inputs: different from
backward
function: FilterConcept
dependencies: 1
inputs: crime
function: Find
inputs: spy film
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: The Sum of All Fears
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: main subject
forward
function: FilterConcept
dependencies: 7
inputs: crime
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0