Question: What is the connection between Malcolm X (the one that has Denzel Washington as a cast member) to John Sayles?
Choices:
geography of topic
applies to jurisdiction
spouse
position held
named after
facet of
cast member
winner
operating system
league
Program:
function: Find
inputs: Denzel Washington
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Malcolm X
function: And
dependencies: 1
2
function: Find
inputs: John Sayles
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Malcolm X" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Denzel Washington" . ?e_2 <pred:name> "John Sayles" . ?e_1 ?p ?e_2 .  }
Answer: cast member