Question: What country does the headquarters of Royal College of Music in London (the one that is the working location of Douglas Haig, 1st Earl Haig) belong to ?
Choices:
Bhutan
Chile
New Zealand
Syria
Peru
Sweden
England
Panama
English
Cambodia
Program:
function: Find
inputs: Royal College of Music
function: Find
inputs: Douglas Haig, 1st Earl Haig
function: Relate
dependencies: 1
inputs: work location
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Royal College of Music" . ?e_2 <pred:name> "London" . ?e_3 <work_location> ?e_2 . ?e_3 <pred:name> "Douglas Haig, 1st Earl Haig" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: England