Question: What is the title of Puss in Boots (the one that has Christopher Walken as a cast member)?
Choices:
Alice in Wonderland
Puss in Boots
Rear Window
Scary Movie 2
The Fisher King
Dancing with the Stars
The Painted Veil
Hancock
हीरोज़
Hot Fuzz
Program:
function: Find
inputs: Christopher Walken
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Puss in Boots
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Puss in Boots" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Christopher Walken" .  ?e <title> ?pv .  }
Answer: Puss in Boots