Question: Did politician Robert Shaw die before 2007?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Robert Shaw" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "politician" .  ?e <date_of_death> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2007 ) .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Robert Shaw
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: date of death
function: VerifyYear
dependencies: 4
inputs: 2007
<