Question: Did the person born as John Fortnite Kennedy die in a year prior to 2002?
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 <birth_name> ?pv_1 . ?pv_1 <pred:value> "John Fortnite Kennedy" . ?e <date_of_death> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2002 ) .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: birth name
John Fortnite Kennedy
function: FilterConcept
dependencies: 1
inputs: human
function: QueryAttr
dependencies: 2
inputs: date of death
function: VerifyYear
dependencies: 3
inputs: 2002
<