Question: For Harvard Divinity School, what is the postal code for its headquarter location in Cambridge (the one that is the residence of John Malkovich)?
Choices:
02138
1502–1503
RG22
99425
97543
82604
31993–31994
8063
1070 MX
40292-0001
Answer: 02138
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Harvard Divinity School" . ?e_2 <pred:name> "Cambridge" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "John Malkovich" . ?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: Harvard Divinity School
function: Find
inputs: John Malkovich
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Cambridge
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code