What is {country} of {Bratislava} that is {start time} is {907-0-0} ?
What country was Bratislava established,  in the year 907?
SELECT ?obj WHERE { wd:Q1780 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P580 ?x filter(contains(?x,'907-0-0')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1780> .
?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> <907-0-0>
} 

Which country in Bratislava got constructed in 907 year?