Question: What is the postal code of the American University of Beirut's headquarters located in Beirut (that is the birthplace of Keanu Reeves)?
Choices:
0001–0099
M5S 1A1
1107 2020
33200
E1
95134
KT
67227
WS1
01326
Answer: 1107 2020
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "American University of Beirut" . ?e_2 <pred:name> "Beirut" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Keanu Reeves" . ?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: American University of Beirut
function: Find
inputs: Keanu Reeves
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Beirut
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code