Question: What is the title of  The Island (the one whose genre is film based on literature)?
Choices:
The Island
Hook
Hamlet
Mulan
Eternal Sunshine of the Spotless Mind
Cedar Rapids
The Butterfly Effect
Rain Man
Legend
The Conversation
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Island
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Island" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .  ?e <title> ?pv .  }
Answer: The Island