Question: What is the title of Alice (the one that has Alec Baldwin as a cast member)?
Choices:
The Interpreter
Mona Lisa
Phil Spector
Yentl
Up in the Air
Alice
Dancer in the Dark
Sunday Bloody Sunday
Doubt
Jimi Hendrix
Program:
function: Find
inputs: Alec Baldwin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alice
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Alice" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Alec Baldwin" .  ?e <title> ?pv .  }
Answer: Alice