what is the {start time} for {New York} has {shares border with} as {Ontario} ?
when did new york shares border with ontario?
SELECT ?value WHERE { wd:Q1384 p:P47 ?s . ?s ps:P47 wd:Q1904 . ?s pq:P580 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1384> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1904> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

In what time did New York and Ontario share a border?