Question: What is the zip code of the HQ of California State University, Fresno in mayor-led Fresno?
Choices:
39762
10458
98121–98168
93740
20910–20911
50931
80014
20134
15705-1098
07751
Answer: 93740
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "California State University, Fresno" . ?e_2 <pred:name> "Fresno" . ?e_2 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "mayor" . ?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: California State University, Fresno
function: Find
inputs: mayor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Fresno
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code