What is {head of government} of {Vaduz} that is {start time} is {2007-1-0} ?
Name the person who took over as  the head of the government of Vaduz on 2017-1-0.
Who became the head of the government of Vaduz on 2017-1-0?
SELECT ?r WHERE { ?g property:start_time ?z . FILTER ( CONTAINS ( YEAR ( ?z ) , '2007' ) ) . resource:Vaduz property:head_of_government ?g . ?g property:head_of_government ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1844> .
?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> <2007-1-0>
} 

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