Question: What is the postal code of an Amsterdam (where AFC Ajax's headquarters locate)'s headquarters location of Philips (the one that produce software as product or material) ?
Choices: 22201–22246
61790-1000
E3B 5A3
46254
12866
97301–97312
1070 MX
44115-2214
53233
125009
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Philips" . ?e_1 <product_or_material_produced> ?e_3 . ?e_3 <pred:name> "software" . ?e_2 <pred:name> "Amsterdam" . ?e_4 <headquarters_location> ?e_2 . ?e_4 <pred:name> "A.F.C. Ajax" . ?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: software
function: Relate
dependencies: 0
inputs: product or material produced
backward
function: Find
inputs: Philips
function: And
dependencies: 1
2
function: Find
inputs: A.F.C. Ajax
function: Relate
dependencies: 4
inputs: headquarters location
forward
function: Find
inputs: Amsterdam
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: headquarters location
postal code
Answer: 1070 MX