Question: What is the connection between Midnight's Children (the one whose production company is Relativity Media) to film based on literature?
Choices: twinned administrative body
capital of
distribution
narrative role
chairperson
genre
director
presenter
distributor
mountain range
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Midnight's Children" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Relativity Media" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Relativity Media
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Midnight's Children
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4
Answer: genre