What is {country of citizenship} of {Marlene Dietrich} that is {start time} is {1939-0-0} ?
Which country became a citizen of Marlene Dietrich in 1939?
In 1939, what country did Marlene Dietrich become a citizen of?
SELECT ?j WHERE { ?s property:start_time ?m . resource:Marlene_Dietrich property:country_of_citizenship ?s . ?s property:country_of_citizenship ?j . FILTER ( CONTAINS ( YEAR ( ?m ) , '1939' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4612> .
?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> <1939-0-0>
} 

SELECT ?obj WHERE { wd:Q4612 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1939')) }