What is {country of citizenship} of {Józef Piłsudski} that is {start time} is {1918-0-0} ?
What country was Józef Piłsudski a citizen of at the start of 1918?
SELECT ?obj WHERE { wd:Q885 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1918')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q885> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P27> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1918-0-0>
} 

In the beginning of 1918 what country was Józef Piłsudski a citizen of?