Question: For the location in London (the one that is the narrative location of Salmon Fishing in the Yemen), to what country does the London headquarter of King's College belong?
Choices: Confederation of the Rhine
Austria
Brazil
Monaco
United Kingdom
South Korea
United States of America
Kingdom of Italy
Holy Roman Empire
Kingdom of Great Britain
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "King's College London" . ?e_2 <pred:name> "London" . ?e_3 <narrative_location> ?e_2 . ?e_3 <pred:name> "Salmon Fishing in the Yemen" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: King's College London
function: Find
inputs: Salmon Fishing in the Yemen
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
country
Answer: United Kingdom