What is {date of death} of {Leonardo Bonacci} that is {earliest date} is {1240-0-0} ?
On what date did Leonardo Bonacci die in 1240?
What was Leonardo Bonacci's date of death in the year 1240?
SELECT ?w WHERE { ?e property:earliest_date ?j . ?e property:date_of_death ?w . FILTER ( CONTAINS ( YEAR ( ?j ) , '1240' ) ) . resource:Fibonacci property:date_of_death ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8763> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P570> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1319> <1240-0-0>
} 

SELECT ?obj WHERE { wd:Q8763 p:P570 ?s . ?s ps:P570 ?obj . ?s pq:P1319 ?x filter(contains(YEAR(?x),'1240')) }