What is {head of government} of {Schleswig-Holstein} that is {start time} is {2017-0-0} ?
Which person took over the government of Schleswig-Holstein in 2017?
Who was the head of government of Schleswig-Holstein in 2017?
SELECT ?a WHERE { ?g property:head_of_government ?a . FILTER ( CONTAINS ( YEAR ( ?x ) , '2017' ) ) . ?g property:start_time ?x . resource:Schleswig-Holstein property:head_of_government ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1194> .
?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/P580> <2017-0-0>
} 

SELECT ?obj WHERE { wd:Q1194 p:P6 ?s . ?s ps:P6 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'2017')) }