What is {capital of} of {Helsinki} that is {located in the administrative territorial entity} is {Russian Empire} ?
What is the capital of Helsinki in the territory of the Russian Empire?
What is the capital of Helsinki that is located in the administrative territorial entity of the Russian Empire?
SELECT ?x WHERE { ?k property:capital_of ?x . resource:Helsinki property:capital_of ?k . ?k property:located_in_the_administrative_territorial_entity resource:Russian_Empire }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1757> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P131> <http://wikidata.dbpedia.org/resource/Q34266>
} 

SELECT ?obj WHERE { wd:Q1757 p:P1376 ?s . ?s ps:P1376 ?obj . ?s pq:P131 wd:Q34266 }