Question: What is the connection between Angel (the one whose director is Ernst Lubitsch) to Marlene Dietrich?
Choices:
cites
mother
cast member
film regional debut venue
replaced by
performer
allegiance
studied by
has edition
director of photography
Program:
function: Find
inputs: Ernst Lubitsch
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Angel
function: And
dependencies: 1
2
function: Find
inputs: Marlene Dietrich
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Angel" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Ernst Lubitsch" . ?e_2 <pred:name> "Marlene Dietrich" . ?e_1 ?p ?e_2 .  }
Answer: cast member