Question: What is the title of Independence (the one whose director is John Huston) ?
Choices:
Chandler
The Remains of the Day
Alexander
This Means War
All Quiet on the Western Front
Nashville
The Twilight Saga: New Moon
Cadillac Records
Striptease
Independence
Program:
function: Find
inputs: John Huston
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Independence
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Independence" . ?e <director> ?e_1 . ?e_1 <pred:name> "John Huston" .  ?e <title> ?pv .  }
Answer: Independence