Question: Did John Adams (the one whose date of birth is 1937-11-28) die before 2016?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:name> "John Adams" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1937-11-28"^^xsd:date . ?e <date_of_death> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2016 ) .  }
Program:
function: Find
inputs: John Adams
function: FilterDate
dependencies: 0
inputs: date of birth
1937-11-28
=
function: QueryAttr
dependencies: 1
inputs: date of death
function: VerifyYear
dependencies: 2
inputs: 2016
<
Answer: yes