Question: Was The Great Gatsby (the one that has Edward Herrmann as a cast member) published before 2003?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "The Great Gatsby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Edward Herrmann" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2003 ) .  }
Program:
function: Find
inputs: Edward Herrmann
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: publication date
function: VerifyYear
dependencies: 4
inputs: 2003
<