Question: What visual artwork is written by Joseph Conrad (whose occupation is writer)?
Choices:
Pleasantville
A Prairie Home Companion
The Crying Game
Lust, Caution
Talk to Her
The Adventures of Pluto Nash
Gulliver's Travels
Rebecca
Apocalypse Now
Fear and Loathing in Las Vegas
Answer: Apocalypse Now
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Joseph Conrad" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "writer" .   }
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Joseph Conrad
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5