Question: What is the title of Arizona, featuring John Wayne as a cast member?
Choices:
An Alan Smithee Film: Burn Hollywood Burn
Eagle Eye
Twilight
Bedknobs and Broomsticks
Battlefield Earth
Radio
Arizona
The Losers
The Way We Were
The Sessions
Program:
function: Find
inputs: John Wayne
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Arizona
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Arizona" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Wayne" .  ?e <title> ?pv .  }
Answer: Arizona