Question: What literary work derives Zodiac (that has Jake Gyllenhaal as a cast member)?
Choices:
The Maltese Falcon
Starship Troopers
Contact
The Painted Veil
A Single Man
The Help
Zodiac
David Copperfield
Live and Let Die
The Hours
Program:
function: Find
inputs: Jake Gyllenhaal
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Zodiac
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: written work
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Zodiac" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Jake Gyllenhaal" .   }
Answer: Zodiac