Question: What is the connection between Gangs of New York (the one whose production company is Miramax) to Jim Broadbent?
Choices:
cast member
grants
depicts
located in time zone
distributor
illustrator
film distribute region
professional or sports partner
doctoral student
symptom of
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gangs of New York" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Miramax" . ?e_2 <pred:name> "Jim Broadbent" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Miramax
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Gangs of New York
function: And
dependencies: 1
2
function: Find
inputs: Jim Broadbent
function: QueryRelation
dependencies: 3
4