Question: What is the connection between Titanic (the one that has Barbara Stanwyck as a cast member) to Robert Wagner?
Choices:
natural product of taxon
product or material produced
cast member
licensed to broadcast to
country of origin
location of final assembly
donated by
terminus
depicts
mother
Program:
function: Find
inputs: Barbara Stanwyck
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Titanic
function: And
dependencies: 1
2
function: Find
inputs: Robert Wagner
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Titanic" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Barbara Stanwyck" . ?e_2 <pred:name> "Robert Wagner" . ?e_1 ?p ?e_2 .  }
Answer: cast member