Question: How is India, where 3 Idiots originates, related to Panama?
Choices:
author
present in work
collection
different from
diplomatic relation
located in the administrative territorial entity
subject has role
academic degree
political ideology
followed by
Program:
function: Find
inputs: 3 Idiots
function: Relate
dependencies: 0
inputs: country of origin
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Find
inputs: Panama
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "India" . ?e_3 <country_of_origin> ?e_1 . ?e_3 <pred:name> "3 Idiots" . ?e_2 <pred:name> "Panama" . ?e_1 ?p ?e_2 .  }
Answer: diplomatic relation