what is the {end time} for {French Indochina} has {capital} as {Saigon} ?
When did Saigon stop being the capital city of French Indochina?
When did Saigon cease to be the capital city of French Indochina?
SELECT ?y WHERE { ?b property:capital resource:Saigon . ?b property:end_time ?y . resource:French_Indochina property:capital ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q185682> .
?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/Q396499> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q185682 p:P36 ?s . ?s ps:P36 wd:Q396499 . ?s pq:P582 ?value}