Question: What country holds Moscow (that is located in Russia) where Fyodor Dostoyevsky was born?
Choices:
Denmark
Russian Empire
Poland
Singapore
Kingdom of Bavaria
Russian Soviet Federative Socialist Republic
Peru
Orange Free State
United Kingdom of Great Britain and Ireland
Ontario
Answer: Russian Empire
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Fyodor Dostoyevsky" . ?e_2 <pred:name> "Moscow" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Russia" . ?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: Fyodor Dostoyevsky
function: Find
inputs: Russia
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Moscow
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
country