What is {country} of {Adelaide} that is {start time} is {1836-12-28} ?
On 12-28-1836, in what county was Adelaide founded?
In what country was Adelaide founded on 12-28-1836?
SELECT ?g WHERE { ?i property:start_time ?x . resource:Adelaide property:country ?i . FILTER ( CONTAINS ( YEAR ( ?x ) , '1836' ) ) . ?i property:country ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5112> .
?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> <1836-12-28>
} 

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