what is the {start time} for {Spanish East Indies} has {capital} as {Iloilo City} ?
When was Iloilo City made capital of Spanish East Indies?
In what year did Iloilo City become the capital of the Spanish East Indies?
SELECT ?t WHERE { ?h property:start_time ?t . resource:Spanish_East_Indies property:capital ?h . ?h property:capital resource:Iloilo_City }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q910648> .
?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/Q459787> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q910648 p:P36 ?s . ?s ps:P36 wd:Q459787 . ?s pq:P580 ?value}