what is the {end time} for {Manchukuo} has {capital} as {Hsinking} ?
Hsinking was the capital of Manchuko in what year?
When was Manchuko's capital Hsinking?
SELECT ?p WHERE { ?t property:capital resource:Hsinking . resource:Manchukuo property:capital ?t . ?t property:end_time ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q30623> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q92237> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q30623 p:P36 ?s . ?s ps:P36 wd:Q92237 . ?s pq:P582 ?value}