What is {head of government} of {Montreuil} that is {start time} is {1971-0-0} ?
Who governed in Montreuil in 1971?
Who was the head of government of Montreuil in 1971?
SELECT ?f WHERE { ?d property:head_of_government ?f . ?d property:start_time ?q . FILTER ( CONTAINS ( YEAR ( ?q ) , '1971' ) ) . resource:Montreuil property:head_of_government ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q193370> .
?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> <1971-0-0>
} 

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