Question: What film has Dustin Hoffman as a cast member and is shot in Montreal?
Choices: Once Upon a Time in America
Finding Neverland
Brooklyn
Wag the Dog
All the President's Men
The Aviator
Sleepers
The Day After Tomorrow
Lemony Snicket's A Series of Unfortunate Events
Barney's Version
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dustin Hoffman" .  ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Montreal" .  }
Program:
function: Find
inputs: Dustin Hoffman
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Montreal
function: Relate
dependencies: 3
inputs: filming location
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Barney's Version