Question: Rome, the birthplace of Vittorio Storaro and the place where Enrico Fermi lived, belongs to which country?
Choices:
Philippines
Bangladesh
Czechoslovak Socialist Republic
Italy
Syria
Argentina
Cambodia
Kingdom of the Netherlands
Germany
Indonesia
Answer: Italy
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Vittorio Storaro" . ?e_2 <pred:name> "Rome" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "Enrico Fermi" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: Vittorio Storaro
function: Find
inputs: Enrico Fermi
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Rome
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
country