Question: What is The Bodyguard's (the one that has Kevin Costner as a cast member), title?
Choices:
Robin Hood
The History Boys
Mary and Max
The Last Airbender
Der verrückte Professor
Boardwalk Empire
Primal Fear
The Water Horse
Some Kind of Monster
The Bodyguard
Program:
function: Find
inputs: Kevin Costner
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "The Bodyguard" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kevin Costner" .  ?e <title> ?pv .  }
Answer: The Bodyguard