What is {head of government} of {Essen} that is {end time} is {1949-0-0} ?
Who was the leader of the Essen government at the commencement of 1949?
Who was the head of the government of Essen at the beginning of 1949?
SELECT ?f WHERE { ?s property:end_time ?g . resource:Essen property:head_of_government ?s . FILTER ( CONTAINS ( YEAR ( ?g ) , '1949' ) ) . ?s property:head_of_government ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2066> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1949-0-0>
} 

SELECT ?obj WHERE { wd:Q2066 p:P6 ?s . ?s ps:P6 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1949')) }