Question: How many armies have headquarter locations in New Delhi (the one that is the death place of Mahatma Gandhi) and the location of Tokyo (the one that is the residence of Cary-Hiroyuki Tagawa)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "army" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "New Delhi" . ?e_2 <place_of_death> ?e_1 . ?e_2 <pred:name> "Mahatma Gandhi" .  ?e <location> ?e_3 . ?e_3 <pred:name> "Tokyo" . ?e_4 <residence> ?e_3 . ?e_4 <pred:name> "Cary-Hiroyuki Tagawa" .  }
Program:
function: Find
inputs: Mahatma Gandhi
function: Relate
dependencies: 0
inputs: place of death
forward
function: Find
inputs: New Delhi
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: army
function: Find
inputs: Cary-Hiroyuki Tagawa
function: Relate
dependencies: 6
inputs: residence
forward
function: Find
inputs: Tokyo
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: location
backward
function: FilterConcept
dependencies: 10
inputs: army
function: And
dependencies: 5
11
function: Count
dependencies: 12