what is the {end time} for {Republic of Bashkortostan} has {located in the administrative territorial entity} as {Russian Soviet Federative Socialist Republic} ?
When did the Republic of Bashkortostan terminate to be beneath the regulatory regional substance of the Russian Soviet Federative Communist Republic?
When did the Republic of Bashkortostan cease to be under the administrative territorial entity of the Russian Soviet Federative Socialist Republic?
SELECT ?a WHERE { ?p property:end_time ?a . ?p property:located_in_the_administrative_territorial_entity resource:Russian_Soviet_Federative_Socialist_Republic . resource:Bashkortostan property:located_in_the_administrative_territorial_entity ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5710> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2184> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q5710 p:P131 ?s . ?s ps:P131 wd:Q2184 . ?s pq:P582 ?value}