Question: How is Hannibal, which was produced by Metro-Goldwyn-Mayer related to Ray Liotta?
Choices: officially opened by
location
position held
employer
place of burial
cast member
original film format
subsidiary
mother
spouse
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hannibal" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Metro-Goldwyn-Mayer" . ?e_2 <pred:name> "Ray Liotta" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Hannibal
function: And
dependencies: 1
2
function: Find
inputs: Ray Liotta
function: QueryRelation
dependencies: 3
4
Answer: cast member