Question: What is the postal code of McMaster University's headquarter location in Hamilton (the one that is the filming location of Amelia?
Choices:
N8P
00-000
<small>E, EC, N, NW, SE, SW, W, WC</small>
79159
L8S 4L8
19716
8043
52065
81735
79178
Answer: L8S 4L8
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "McMaster University" . ?e_2 <pred:name> "Hamilton" . ?e_3 <filming_location> ?e_2 . ?e_3 <pred:name> "Amelia" . ?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: McMaster University
function: Find
inputs: Amelia
function: Relate
dependencies: 1
inputs: filming location
forward
function: Find
inputs: Hamilton
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code