Question: The birthplace of Fyodor Dostoyevsky, Moscow in Moscow Oblast, is in which country?
Choices:
Hungary
Lebanon
Spain
Russian Empire
Belgium
Burkina Faso
United States of America
Kazakhstan
Uruguay
India
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> "Moscow Oblast" . ?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: Moscow Oblast
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