Question: How is Stephen Dillane related to Hamlet, which had Pete Postlethwaite as a cast member?
Choices:
cast member
candidacy in election
based on
history of topic
sex or gender
ancestral home
location of formation
statistical leader
registered with
candidate
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Pete Postlethwaite" . ?e_2 <pred:name> "Stephen Dillane" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pete Postlethwaite
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Stephen Dillane
function: QueryRelation
dependencies: 3
4