Question: Regarding Hamlet (the one that has Maximillan Schell in its cast), was it published other than 2008?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Maximilian Schell" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2008 ) .  }
Program:
function: Find
inputs: Maximilian Schell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: publication date
function: VerifyYear
dependencies: 4
inputs: 2008
!=