Question: Tell me the relationship between Rocky (which has Satyen Kappu in its cast) to Amjad Khan.
Choices:
place served by transport hub
soundtrack album
depicts
taxon rank
archives at
allegiance
cast member
language used
next lower rank
child
Program:
function: Find
inputs: Satyen Kappu
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Rocky
function: And
dependencies: 1
2
function: Find
inputs: Amjad Khan
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Rocky" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Satyen Kappu" . ?e_2 <pred:name> "Amjad Khan" . ?e_1 ?p ?e_2 .  }
Answer: cast member