# filename: cap5example24.rq
# filtro de fechas
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/description#>
SELECT *
WHERE {
     ?cientifico dbo:birthDate ?nacio .
     ?cientifico dbo:deathDate ?murio .
     OPTIONAL {
       ?cientifico dbo:knownFor ?campo .
     }
     ?cientifico rdf:type dbo:Scientist .
     FILTER( ?murio >= "2000-01-01"^^xsd:date)
}

ORDER BY ?cientifico 