Question: How many short films had the script written by the actor Warren Ellis or are situated in Kyoto ?
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> "short film" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Warren Ellis" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "actor" .  ?e <narrative_location> ?e_3 . ?e_3 <pred:name> "Kyoto" .  }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Warren Ellis
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: screenwriter
backward
function: FilterConcept
dependencies: 4
inputs: short film
function: Find
inputs: Kyoto
function: Relate
dependencies: 6
inputs: narrative location
backward
function: FilterConcept
dependencies: 7
inputs: short film
function: And
dependencies: 5
8
function: Count
dependencies: 9
Answer: 0