Question: What is the connection between The Three Musketeers (the one that has John Wayne as a cast member) to Alexandre Dumas (the one whose British Museum person-institution is 142314)?
Choices:
lifestyle
permanent resident of
original language of film or TV show
after a work by
mother
religion
kit supplier
has contributing factor
depicts
followed by
Answer: after a work by
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> "Alexandre Dumas" . ?e_2 <British_Museum_person-institution> ?pv . ?pv <pred:value> "142314" . ?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: Alexandre Dumas
function: FilterStr
dependencies: 4
inputs: British Museum person-institution
142314
function: QueryRelation
dependencies: 3
5