Question: Which country does London (the one that is the headquarter location of Barnet F.C.), the birthplace of Diana Wynne Jones, belong to?
Choices:
worldwide
Japan
Uruguay
Switzerland
Kingdom of Saxony
Iran
Greece
United Kingdom
Slovenia
Cambodia
Program:
function: Find
inputs: Diana Wynne Jones
function: Find
inputs: Barnet F.C.
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Diana Wynne Jones" . ?e_2 <pred:name> "London" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Barnet F.C." . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: United Kingdom