What is {head of government} of {Bordeaux} that is {start time} is {1947-10-19} ?
What prime minister began in Bordeaux on October 19, 1947?
What head of government began in Bordeaux on October 19, 1947?
SELECT ?y WHERE { ?e property:head_of_government ?y . FILTER ( CONTAINS ( YEAR ( ?q ) , '1947' ) ) . resource:Bordeaux property:head_of_government ?e . ?e property:start_time ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1479> .
?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> <1947-10-19>
} 

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