Question: In what country was Tyrone Power (the one that has the occupation of military officer) when he died in Madrid?
Choices:
Malaysia
Japan
Spain
Panama
Israel
German Democratic Republic
Bhutan
English
England
New Zealand
Answer: Spain
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tyrone Power" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "military officer" . ?e_2 <pred:name> "Madrid" . ?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: military officer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tyrone Power
function: And
dependencies: 1
2
function: Find
inputs: Madrid
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of death
country