Question: What does Sir (which has Naseeruddin Shah as a cast member) have to do with Hindi?
Choices:
next lower rank
country of origin
killed by
medical condition
lyrics by
original language of film or TV show
derivative work
occupation
based on
coextensive with
Program:
function: Find
inputs: Naseeruddin Shah
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Sir
function: And
dependencies: 1
2
function: Find
inputs: Hindi
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Sir" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Naseeruddin Shah" . ?e_2 <pred:name> "Hindi" . ?e_1 ?p ?e_2 .  }
Answer: original language of film or TV show