What is {country} of {Wiesbaden} that is {start time} is {1871-1-18} ?
In 1871 what country was started in Wiesbaden?
What country was started in the year 1871 in Wiesbaden?
SELECT ?h WHERE { ?d property:start_time ?d . FILTER ( CONTAINS ( YEAR ( ?d ) , '1871' ) ) . ?d property:country ?h . resource:Wiesbaden property:country ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1721> .
?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> <1871-1-18>
} 

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