Question: What is the connection between Queen (the one whose producer is Anurag Kashyap) to Delhi?
Choices:
spouse
participant
had as last meal
cast member
filming location
subsidiary
genre
office held by head of state
fictional universe described in
office held by head of the organisation
Answer: filming location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Queen" . ?e_1 <producer> ?e_3 . ?e_3 <pred:name> "Anurag Kashyap" . ?e_2 <pred:name> "Delhi" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Anurag Kashyap
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Queen
function: And
dependencies: 1
2
function: Find
inputs: Delhi
function: QueryRelation
dependencies: 3
4