Question: How is Eragon, produced by Davis Entertainment, related to the genre of literature-based film?
Choices:
contains settlement
family
film editor
native language
opposite of
mouth of the watercourse
characters
permanent resident of
month of the year
genre
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Eragon" . ?e_1 <production_company> ?e_3 . ?e_3 <pred:name> "Davis Entertainment" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Davis Entertainment
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Eragon
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4