Question: What is the link between Miracle on 34th Street that has Elizabeth Perkins as a cast member and George Seaton?
Choices:
film crew member
twinned administrative body
screenwriter
hair color
geographic distribution
diplomatic relation
item operated
political alignment
depicts
member of political party
Answer: screenwriter
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Miracle on 34th Street" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Elizabeth Perkins" . ?e_2 <pred:name> "George Seaton" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Elizabeth Perkins
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Miracle on 34th Street
function: And
dependencies: 1
2
function: Find
inputs: George Seaton
function: QueryRelation
dependencies: 3
4