Question: What is the relationship between Morocco (the one that has Marlene Dietrich as a cast member) and Henry Hathaway?
Choices:
director
manufacturer
political alignment
found
lyrics by
has quality
significant person
musical conductor
notable people with this condition
make-up artist
Answer: director
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Morocco" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Marlene Dietrich" . ?e_2 <pred:name> "Henry Hathaway" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Marlene Dietrich
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Morocco
function: And
dependencies: 1
2
function: Find
inputs: Henry Hathaway
function: QueryRelation
dependencies: 3
4