Question: How is The Bodyguard, with Sammo Hung as a cast member, related to Andy Lau?
Choices:
participant of
season starts
dedicated to
producer
original film format
given name
present in work
replaces
series spin-off
software engine
Program:
function: Find
inputs: Sammo Hung
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Bodyguard
function: And
dependencies: 1
2
function: Find
inputs: Andy Lau
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Bodyguard" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Sammo Hung" . ?e_2 <pred:name> "Andy Lau" . ?e_1 ?p ?e_2 .  }
Answer: producer