What is {country} of {Bucharest} that is {start time} is {1859-1-24} ?
As of 1859/1/24, the country that Bucharest was located in, formerly known as Moldova, was known as what?
In 1859 -1-24, Bucharest was in a country which changed its name from Moldova to what new name?
SELECT ?p WHERE { FILTER ( CONTAINS ( YEAR ( ?z ) , '1859' ) ) . ?w property:start_time ?z . resource:Bucharest property:country ?w . ?w property:country ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q19660> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1859-1-24>
} 

SELECT ?obj WHERE { wd:Q19660 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1859')) }