Question: What does Milan (which has Dilip Kumar as a cast member) have to do with Dilip Kumar?
Choices:
sex or gender
screenwriter
narrative location
office contested
draft pick from school
cast member
territory overlaps
partially contains
product or material produced
location of final assembly
Program:
function: Find
inputs: Dilip Kumar
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Milan
function: And
dependencies: 1
2
function: Find
inputs: Dilip Kumar
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Milan" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Dilip Kumar" . ?e_2 <pred:name> "Dilip Kumar" . ?e_1 ?p ?e_2 .  }
Answer: cast member