Question: What is the postal code of andai Namco Entertainment's headquarter location is Tokyo (the one that is the headquarter location of Bandai Namco Amusement),?
Choices:
140-8590
97527
78404–78418
92620
01701–01705
OX postcode area
89701-89706, 89711-89714, 89721
20010–20099
03802
80214–80239
Answer: 140-8590
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Bandai Namco Entertainment" . ?e_2 <pred:name> "Tokyo" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Bandai Namco Amusement" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <postal_code> ?qpv .  }
Program:
function: Find
inputs: Bandai Namco Entertainment
function: Find
inputs: Bandai Namco Amusement
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Tokyo
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code