Question: How is the literature film Beloved related to costume drama?
Choices: military rank
film distribute region
director
professional or sports partner
composer
genre
influenced by
narrative location
film release region
significant event
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beloved" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "costume drama" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Beloved
function: And
dependencies: 1
2
function: Find
inputs: costume drama
function: QueryRelation
dependencies: 3
4
Answer: genre