Question: London, the place of death of J. G. Ballard and the headquarters of Brentford F.C., is in which country?
Choices:
worldwide
Prussia
United Kingdom
Mexico
Brazil
Saxe-Weimar-Eisenach
United Arab Republic
Lithuania
Portugal
Austria
Program:
function: Find
inputs: J. G. Ballard
function: Find
inputs: Brentford 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 death
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "J. G. Ballard" . ?e_2 <pred:name> "London" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Brentford F.C." . ?e_1 <place_of_death> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_death> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: United Kingdom