What is {premier} of {Ontario}, that has {born on} is {1953-5-21} ?
What chief of Ontario was born on 1953-5-21?
What premier of Ontario was born on 1953-5-21?
SELECT ?c WHERE { resource:Ontario property:head_of_government ?c . ?c property:date_of_birth ?l . FILTER ( CONTAINS ( YEAR ( ?l ) , '1953' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1904> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P569> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1953-5-21> . }
SELECT ?answer WHERE { wd:Q1904 wdt:P6 ?answer . ?answer wdt:P569 ?x FILTER(contains(YEAR(?x),'1953'))}