Question: What is the title of Scotland (the one with Kevin Corrigan as the cast member) ?
Choices:
Metallica
Scotland
The Unbearable Lightness of Being
My Sister's Keeper
Jewel
Scream 2
Kung Fu Panda
Thunderball
The World's Fastest Indian
Why We Fight
Program:
function: Find
inputs: Kevin Corrigan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Scotland
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Scotland" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kevin Corrigan" .  ?e <title> ?pv .  }
Answer: Scotland