Question: What visual artwork is an derived work of Empire of the Sun (that is a well-known work by J. G. Ballard)?
Choices:
A Prairie Home Companion
Empire of the Sun
Rebecca
The Towering Inferno
Pleasantville
Dead Man
Training Day
The Fifth Element
Talk to Her
Water
Answer: Empire of the Sun
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Empire of the Sun" . ?e_2 <notable_work> ?e_1 . ?e_2 <pred:name> "J. G. Ballard" .   }
Program:
function: Find
inputs: J. G. Ballard
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Empire of the Sun
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5