What is {head of government} of {Nuremberg} that is {end time} is {1891-0-0} ?
In 1891, who was the government head of Nuremberg?
Who was the head of Nuremberg's government in 1891?
SELECT ?c WHERE { ?f property:head_of_government ?c . FILTER ( CONTAINS ( YEAR ( ?r ) , '1891' ) ) . ?f property:end_time ?r . resource:Nuremberg 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/Q2090> .
?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> <1891-0-0>
} 

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