Question: What is the title of The Talented Mr. Ripley (the one that has Gwyneth Paltrow as a cast member)?
Choices: Dirty Dancing
J. Edgar
The Talented Mr. Ripley
Indiana Jones and the Kingdom of the Crystal Skull
The Family Man
127 Hours
La Mouche noire
Intolerable Cruelty
Paris, je t'aime
Ice Age: Continental Drift
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Talented Mr. Ripley" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Gwyneth Paltrow" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: Gwyneth Paltrow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Talented Mr. Ripley
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
Answer: The Talented Mr. Ripley