Question: Which genre of literature is shared by the work titled Twin Peaks: Fire Walk with Me and The Shining, released in West Germany?
Choices:
To Kill a Mockingbird
Watchmen
drama film
fairy tale
psychological horror
The Scarlet Letter
literary criticism
adventure novel
medical novel
The Amazing Spider-Man
Answer: psychological horror
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e_1 <genre> ?e . ?e_1 <pred:name> "Twin Peaks: Fire Walk with Me" . ?e_1 <title> ?pv . ?pv <pred:value> "Twin Peaks: Fire Walk with Me" .  ?e_2 <genre> ?e . ?e_2 <pred:name> "The Shining" . ?e_2 <film_release_region> ?e_3 . ?e_3 <pred:name> "West Germany" .  }
Program:
function: Find
inputs: Twin Peaks: Fire Walk with Me
function: FilterStr
dependencies: 0
inputs: title
Twin Peaks: Fire Walk with Me
function: Relate
dependencies: 1
inputs: genre
forward
function: FilterConcept
dependencies: 2
inputs: literary genre
function: Find
inputs: West Germany
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Shining
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: genre
forward
function: FilterConcept
dependencies: 8
inputs: literary genre
function: And
dependencies: 3
9
function: What
dependencies: 10