Question: How is actor Salman Khan related to the movie Wanted which stars Vinod Khanna?
Choices:
organizer
item operated
start point
cast member
diaspora
eye color
followed by
author
season starts
musical conductor
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wanted" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Vinod Khanna" . ?e_2 <pred:name> "Salman Khan" . ?e_2 <occupation> ?e_4 . ?e_4 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Vinod Khanna
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Wanted
function: And
dependencies: 1
2
function: Find
inputs: actor
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Salman Khan
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7