what is the {earliest date} for {John the Baptist} has {date of death} as {30-0-0} ?
For the death of John the Baptist in the year 30, what is the earliest date?
What is the earliest date for John the Baptist's death in the year 30?
SELECT ?y WHERE { ?u property:earliest_date ?y . FILTER ( CONTAINS ( ?c , '30-0-0' ) ) . resource:John_the_Baptist property:date_of_death ?u . ?u property:date_of_death ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40662> .
?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> <30-0-0> .
?statement <http://www.wikidata.org/entity/P1319> ?value. 
} 

SELECT ?value WHERE { wd:Q40662 p:P570 ?s . ?s ps:P570 ?x filter(contains(?x , '30-0-0')) . ?s pq:P1319 ?value}