Question: Which TV movie titled Carrie was written by Stephen King (the one whose genre is detective fiction)?
Choices: Luther
Shackleton
Carrie
All Quiet on the Western Front
The Music Man
The Challenge
The Goodbye Girl
A Christmas Carol
The Late Shift
The Three Musketeers
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television film" . ?e <title> ?pv . ?pv <pred:value> "Carrie" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Stephen King" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "detective fiction" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Carrie
function: FilterConcept
dependencies: 1
inputs: television film
function: Find
inputs: detective fiction
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: Stephen King
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: after a work by
backward
function: FilterConcept
dependencies: 7
inputs: television film
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Carrie