Question: What is the title Nashville (the one that has Keith Carradine as a cast member)?
Choices:
Salt
Sherlock Holmes: A Game of Shadows
Cry Freedom
A Great Day in Harlem
Showgirls
Man on the Moon
Nashville
Alice au pays des merveilles
Snow White and the Seven Dwarfs
Hudson Hawk
Program:
function: Find
inputs: Keith Carradine
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Nashville
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Nashville" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Keith Carradine" .  ?e <title> ?pv .  }
Answer: Nashville