Question: What is the link between Shame (that has Max von Sydow as a cast member) and Liv Ullmann?
Choices: cast member
film distribute region
sex or gender
coextensive with
librettist
official religion
famous people
official language
contains settlement
followed by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shame" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Max von Sydow" . ?e_2 <pred:name> "Liv Ullmann" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Max von Sydow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Shame
function: And
dependencies: 1
2
function: Find
inputs: Liv Ullmann
function: QueryRelation
dependencies: 3
4
Answer: cast member