what is the {end time} for {Simferopol} has {capital of} as {Crimean Socialist Soviet Republic} ?
when is the {end time} for {Simferopol} that has {capital of} as {Crimean Socialist Soviet Republic} ?
SELECT ?value WHERE { wd:Q19566 p:P1376 ?s . ?s ps:P1376 wd:Q1842362 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q19566> .
?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> <http://wikidata.dbpedia.org/resource/Q1842362> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

Was Crimea part of the USSR?