Question: How is X-Men, with Patrick Stewart as a cast member, related to Richard Donner?
Choices: talk show guest
record label
illustrator
uses
executive producer
followed by
residence
work location
occupant
famous people
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "X-Men" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Patrick Stewart" . ?e_2 <pred:name> "Richard Donner" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Patrick Stewart
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Find
inputs: Richard Donner
function: QueryRelation
dependencies: 3
4
Answer: executive producer