what is the {country} for {Modest Mussorgsky} has {place of death} as {Saint Petersburg} ?
In what country of Saint Petersburg did Modest Mussorgsky die?
In which country is Saint Petersburg, where Modest Mussorgsky died?
SELECT ?i WHERE { ?v property:place_of_death resource:Saint_Petersburg . resource:Modest_Petrovich_Mussorgsky property:place_of_death ?v . ?v property:country ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q132682> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q656> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q132682 p:P20 ?s . ?s ps:P20 wd:Q656 . ?s pq:P17 ?value}