Question: What is the relationship between The Man in the Iron Mask, which originally aired on NBC, and Patrick McGoohan?
Choices: contains administrative territorial entity
film editor
tributary
location
cast member
subsidiary
official symbol
drug used for treatment
material used
work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Man in the Iron Mask" . ?e_1 <original_network> ?e_3 . ?e_3 <pred:name> "NBC" . ?e_2 <pred:name> "Patrick McGoohan" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: NBC
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 1
2
function: Find
inputs: Patrick McGoohan
function: QueryRelation
dependencies: 3
4
Answer: cast member