Question: What is the postal code of London School of Economics's headquarters in London (the one that is the narrative location of Pirates of the Caribbean: On Stranger Tides)?
Choices: 38802
07206
34121
9700–9747
92110-2492
39180–39183
WC2A 2AE
39104–39130
99501–99524
8010
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "London School of Economics" . ?e_2 <pred:name> "London" . ?e_3 <narrative_location> ?e_2 . ?e_3 <pred:name> "Pirates of the Caribbean: On Stranger Tides" . ?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: London School of Economics
function: Find
inputs: Pirates of the Caribbean: On Stranger Tides
function: Relate
dependencies: 1
inputs: narrative location
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code
Answer: WC2A 2AE