Question: Journalist James Joyce's place of death, Zürich, belongs to which country?
Choices:
Saxe-Weimar-Eisenach
Kingdom of Saxony
Saudi Arabia
Denmark
Nazi Germany
Switzerland
Brazil
Australia
Egypt
Nepal
Answer: Switzerland
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "James Joyce" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "journalist" . ?e_2 <pred:name> "Zürich" . ?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: journalist
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: James Joyce
function: And
dependencies: 1
2
function: Find
inputs: Zürich
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of death
country