Question: Palm Springs, where William Demarest died, is in which country?
Choices:
Portugal
Kingdom of the Netherlands
Caribbean Netherlands
Hungary
Sweden
worldwide
England
Kingdom of Great Britain
Czechoslovak Socialist Republic
United States of America
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "William Demarest" . ?e_2 <pred:name> "Palm Springs" . ?e_3 <place_of_death> ?e_2 . ?e_3 <pred:name> "William Demarest" . ?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 .  }
Program:
function: Find
inputs: William Demarest
function: Find
inputs: William Demarest
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Palm Springs
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of death
country