Question: How is Bleak House (based on literature) related to film based on literature?
Choices:
place of birth
director/manager
cause of death
capital of
named after
culture
headquarters location
has contributing factor
genre
film editor
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Bleak House
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bleak House" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Answer: genre