What is {capital of} of {Jaipur} that is {start time} is {1727-0-0} ?
Which city was the Capital of Jaipur in the year 1727?.
What city became the capital of Jaipur in 1727?
SELECT ?z WHERE { ?j property:start_time ?f . ?j property:capital_of ?z . resource:Jaipur property:capital_of ?j . FILTER ( CONTAINS ( YEAR ( ?f ) , '1727' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q66485> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1727-0-0>
} 

SELECT ?obj WHERE { wd:Q66485 p:P1376 ?s . ?s ps:P1376 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1727')) }