Question: What is the postal code for Harvard Divinity School's headquarters in Cambridge (the one whose elevation (above sea level) is 12 metre) ?
Choices:
02138
20010–20099
45402
EN5
2500
04157
27706
91125
20052
199406
Answer: 02138
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Harvard Divinity School" . ?e_2 <pred:name> "Cambridge" . ?e_2 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "12"^^xsd:double . ?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: Cambridge
function: FilterNum
dependencies: 1
inputs: elevation above sea level
12 metre
=
function: QueryRelationQualifier
dependencies: 0
2
inputs: headquarters location
postal code