Question: What is the postal code of Philips's (the one that sets up in Eindhoven) Amsterdam (the one that is the headquarter location of PolyGram) headquarter location?
Choices:
67227
95134
1070 MX
NE
93915
OX postcode area
10027
91526
39406-0001
20993
Answer: 1070 MX
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Philips" . ?e_1 <location_of_formation> ?e_3 . ?e_3 <pred:name> "Eindhoven" . ?e_2 <pred:name> "Amsterdam" . ?e_4 <headquarters_location> ?e_2 . ?e_4 <pred:name> "PolyGram" . ?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: Eindhoven
function: Relate
dependencies: 0
inputs: location of formation
backward
function: Find
inputs: Philips
function: And
dependencies: 1
2
function: Find
inputs: PolyGram
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