Question: Sam Neill was cast in the role of Merlin in which miniseries?
Choices: The Ten Commandments
Edge of Darkness
Merlin
George Washington
Emma
Roots
The Stand
Battlestar Galactica
The Pacific
The Civil War
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sam Neill" .  [ <pred:fact_h> ?e ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_1 ] <character_role> ?qpv . ?qpv <pred:value> "Merlin" .  }
Program:
function: Find
inputs: Sam Neill
function: Relate
dependencies: 0
inputs: cast member
backward
function: QFilterStr
dependencies: 1
inputs: character role
Merlin
function: FilterConcept
dependencies: 2
inputs: miniseries
function: What
dependencies: 3
Answer: Merlin