Question: Is the publication date before 1987 for John Paul Jones (the one that is shot in Madrid)?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:name> "John Paul Jones" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Madrid" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1987 ) .  }
Program:
function: Find
inputs: Madrid
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: John Paul Jones
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: publication date
function: VerifyYear
dependencies: 4
inputs: 1987
<
Answer: yes