Question: What is the connection between New Orleans (the one that has Shelley Winters as a cast member) to Sammy Davis Jr.?
Choices: cast member
currency
costume designer
military casualty classification
presenter
founded by
maintained by
edition or translation of
fabrication method
has dialect (DEPRECATED)
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "New Orleans" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Shelley Winters" . ?e_2 <pred:name> "Sammy Davis Jr." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Shelley Winters
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: New Orleans
function: And
dependencies: 1
2
function: Find
inputs: Sammy Davis Jr.
function: QueryRelation
dependencies: 3
4
Answer: cast member