Question: What is the relationship between The Three Musketeers (the one that has John Wayne as a cast member) to John Wayne?
Choices: software engine
designed by
family
head of government
movement
godparent
country for sport
tributary
cast member
child astronomical body
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Three Musketeers" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "John Wayne" . ?e_2 <pred:name> "John Wayne" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Wayne
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: John Wayne
function: QueryRelation
dependencies: 3
4
Answer: cast member