What is the {historical country} for {head of government} of {Vladimir Lenin}
[]
Vladimir Lenin was the head of government of which historical country.
SELECT DISTINCT ?r WHERE { ?r property:head_of_government resource:Vladimir_Lenin . ?r rdf:type ontology:historical_country }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1394> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3024240> } 
 select distinct ?sbj where { ?sbj wdt:P6 wd:Q1394 . ?sbj wdt:P31 wd:Q3024240 } 
Russian Socialist Federative Soviet Republic (1918-1923) Russian Soviet Federative Socialist Republic