Question: Regarding the person who died on 2009-01-31, is he or she born prior to 1982
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <date_of_death> ?pv_1 . ?pv_1 <pred:date> "2009-01-31"^^xsd:date . ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1982 ) .  }
Program:
function: FindAll
function: FilterDate
dependencies: 0
inputs: date of death
2009-01-31
=
function: FilterConcept
dependencies: 1
inputs: human
function: QueryAttr
dependencies: 2
inputs: date of birth
function: VerifyYear
dependencies: 3
inputs: 1982
<