Question: How many video game publishers have a headquarter location in Tokyo (the one that is the burial place of Osamu Tezuka)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "video game publisher" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Tokyo" . ?e_2 <place_of_burial> ?e_1 . ?e_2 <pred:name> "Osamu Tezuka" .   }
Program:
function: Find
inputs: Osamu Tezuka
function: Relate
dependencies: 0
inputs: place of burial
forward
function: Find
inputs: Tokyo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: video game publisher
function: Count
dependencies: 5