Question: Which historical country is located in the continent of the geographic region in which the continent of the Russian Soviet Federative Socialist Republic is located(the one whose official name is Российская Советская Федеративная Социалистическая Республика)?
Choices:
Dresden
Electorate of Saxony
Russian Soviet Federative Socialist Republic
French First Republic
Koblenz
Russian Empire
German Empire
Mongol Empire
Confederate States of America
Roman Republic
Answer: Mongol Empire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e <continent> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "geographic region" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Russian Soviet Federative Socialist Republic" . ?e_2 <official_name> ?pv . ?pv <pred:value> "Российская Советская Федеративная Социалистическая Республика" .   }
Program:
function: Find
inputs: Russian Soviet Federative Socialist Republic
function: FilterStr
dependencies: 0
inputs: official name
Российская Советская Федеративная Социалистическая Республика
function: Relate
dependencies: 1
inputs: continent
forward
function: FilterConcept
dependencies: 2
inputs: geographic region
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: historical country
function: What
dependencies: 5