Question: What is the title of The Shipping News (the one that has Rhys Ifans as a cast member)?
Choices:
The Song of Bernadette
Casper
Romeo + Juliet
Sherlock
Julius Caesar
Ali
Mrs. Brown
The Color Purple
Fast Food Nation
The Shipping News
Program:
function: Find
inputs: Rhys Ifans
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Shipping News
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Shipping News" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Rhys Ifans" .  ?e <title> ?pv .  }
Answer: The Shipping News