Question: What country does London, the headquarters location of Italia Conti Academy of Theatre Arts and Polydor Records, belong to?
Choices:
Iceland
United Kingdom
Kingdom of Great Britain
Slovenia
Russia
Guyana
India
British Empire
Germany
English
Answer: United Kingdom
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Italia Conti Academy of Theatre Arts" . ?e_2 <pred:name> "London" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Polydor Records" . ?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: Italia Conti Academy of Theatre Arts
function: Find
inputs: Polydor Records
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country