What is {country of citizenship} of {Anna Freud} that is {end time} is {1946-0-0} ?
Anna Freud was a citizen of what country in 1946?
What was Anna Freud's country of citizenship in 1946?
SELECT ?o WHERE { ?z property:end_time ?k . FILTER ( CONTAINS ( YEAR ( ?k ) , '1946' ) ) . ?z property:country_of_citizenship ?o . resource:Anna_Freud property:country_of_citizenship ?z }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q78485> .
?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/P582> <1946-0-0>
} 

SELECT ?obj WHERE { wd:Q78485 p:P27 ?s . ?s ps:P27 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1946')) }