Question: What's the relationship between Satyen Kappu and Rocky (directed by Sunil Dutt)?
Choices:
hair color
home port
capital of
cast member
source of income
filmography
film crew member
commander of
partially contains
foundational text
Program:
function: Find
inputs: Sunil Dutt
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Rocky
function: And
dependencies: 1
2
function: Find
inputs: Satyen Kappu
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Rocky" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Sunil Dutt" . ?e_2 <pred:name> "Satyen Kappu" . ?e_1 ?p ?e_2 .  }
Answer: cast member