Question: What film has Naomi Watts as a cast member and Universal Pictures (that is the distributor of Coal Miner's Daughter) as the distributor?
Choices:
American Graffiti
King Kong
I Heart Huckabees
The Good Shepherd
Ned Kelly
The Hunchback of Notre Dame
Mulholland Drive
It's Complicated
Erin Brockovich
The Sting
Program:
function: Find
inputs: Naomi Watts
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Coal Miner's Daughter
function: Relate
dependencies: 3
inputs: distributor
forward
function: Find
inputs: Universal Pictures
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: distributor
backward
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Naomi Watts" .  ?e <distributor> ?e_2 . ?e_2 <pred:name> "Universal Pictures" . ?e_3 <distributor> ?e_2 . ?e_3 <pred:name> "Coal Miner's Daughter" .  }
Answer: Mulholland Drive