Question: For Richard Wagner (the one that died in the manner of natural causes) died in Venice (the one that is the twinned administrative body of Trieste), to what country does it belong?
Choices: Kingdom of Italy
Armenia
India
Caribbean Netherlands
Curaçao
international
Cambodia
Aruba
Union of South Africa
Singapore
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Richard Wagner" . ?e_1 <manner_of_death> ?e_3 . ?e_3 <pred:name> "natural causes" . ?e_2 <pred:name> "Venice" . ?e_4 <twinned_administrative_body> ?e_2 . ?e_4 <pred:name> "Trieste" . ?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: natural causes
function: Relate
dependencies: 0
inputs: manner of death
backward
function: Find
inputs: Richard Wagner
function: And
dependencies: 1
2
function: Find
inputs: Trieste
function: Relate
dependencies: 4
inputs: twinned administrative body
forward
function: Find
inputs: Venice
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: place of death
country
Answer: Kingdom of Italy