Question: How many film characters received the Purple Heart (that was received by Oliver Stone) or have the name Sherlock Holmes in native language?
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> "film character" .  { ?e <award_received> ?e_1 . ?e_1 <pred:name> "Purple Heart" . ?e_2 <award_received> ?e_1 . ?e_2 <pred:name> "Oliver Stone" .  } UNION { ?e <name_in_native_language> ?pv . ?pv <pred:value> "Sherlock Holmes" .  } }
Program:
function: Find
inputs: Oliver Stone
function: Relate
dependencies: 0
inputs: award received
forward
function: Find
inputs: Purple Heart
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: award received
backward
function: FilterConcept
dependencies: 4
inputs: film character
function: FindAll
function: FilterStr
dependencies: 6
inputs: name in native language
Sherlock Holmes
function: FilterConcept
dependencies: 7
inputs: film character
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2