Question: Which film features both Samuel L. Jackson and Patrick McGoohan in its cast?
Choices:
Braveheart
RoboCop
Inglourious Basterds
Iron Man 2
The Phantom
The Man in the Iron Mask
A Time to Kill
Captain America: The First Avenger
Rules of Engagement
Jumper
Answer: A Time to Kill
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Samuel L. Jackson" .  ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Patrick McGoohan" .  }
Program:
function: Find
inputs: Samuel L. Jackson
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Patrick McGoohan
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6