Question: What is the postal code of University of California, San Francisco's headquarters in San Francisco (the one that is the birthplace of Daniel Handler)?
Choices:
RG21
94143
92270
34090
WD
WC1E 7HU
102-0073
44700–44799
SO23
SR2
Answer: 94143
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "University of California, San Francisco" . ?e_2 <pred:name> "San Francisco" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Daniel Handler" . ?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: University of California, San Francisco
function: Find
inputs: Daniel Handler
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code