Question: What is the zip code of the HQ of Christ's College in Cambridge, birthplace of Syd Barrett?
Choices:
52070
47725
CB2 3BU
8013
57104
5013
SN5
08620
47761
67216
Answer: CB2 3BU
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Christ's College" . ?e_2 <pred:name> "Cambridge" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Syd Barrett" . ?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: Christ's College
function: Find
inputs: Syd Barrett
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Cambridge
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code