What is {date of death} of {Diophantus} that is {latest date} is {299-0-0} ?
When did Diaphantus die?
what is date of death  of diophantus is latest date is 299-0-0?
SELECT ?t WHERE { ?t property:date_of_death ?t . resource:Diofantos property:date_of_death ?t . FILTER ( CONTAINS ( ?o , '299-0-0' ) ) . ?t property:latest_date ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q178217> .
?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/P1326> <299-0-0>
} 

SELECT ?obj WHERE { wd:Q178217 p:P570 ?s . ?s ps:P570 ?obj . ?s pq:P1326 ?x filter(contains(?x , '299-0-0')) }