What is {country of citizenship} of {Joseph Brodsky} that is {end time} is {1972-0-0} ?
What country did Joseph Bodsky belong to that ended in 1972?
What is Joseph Brodsky's country of citizenship that ended in 1972?
SELECT ?d WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '1972' ) ) . ?c property:country_of_citizenship ?d . resource:Joseph_Brodsky property:country_of_citizenship ?c . ?c property:end_time ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q862> .
?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> <1972-0-0>
} 

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