Question: What is the postal code of the London School of Economics's headquarter location in London (the one that is the birthplace of David Attenborough)?
Choices:
OX2 6QA
72701
91103
50997
50010–50014
WC2A 2AE
92009
27514–27517
N8Y
15701
Answer: WC2A 2AE
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "London School of Economics" . ?e_2 <pred:name> "London" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "David Attenborough" . ?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: David Attenborough
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
postal code