Question: What film has Tommy Lee who is the spouse of Pamela Anderson as a cast member?
Choices:
A Prairie Home Companion
The Towering Inferno
Chico
Pleasantville
Scream 3
Training Day
Vanilla Sky
Talk to Her
Thunder Bay
Rebecca
Program:
function: Find
inputs: Pamela Anderson
function: Relate
dependencies: 0
inputs: spouse
forward
function: Find
inputs: Tommy Lee
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: film
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tommy Lee" . ?e_2 <spouse> ?e_1 . ?e_2 <pred:name> "Pamela Anderson" .   }
Answer: Vanilla Sky