Question: Which written work inspired the movie titled The Man with the Golden Gun?
Choices: Life of Pi
The Hours
The Stand
Along Came a Spider
Fear and Loathing in Las Vegas
The Sum of All Fears
Scarlett
The Da Vinci Code
The Man with the Golden Gun
Interview with the Vampire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "film" . ?e_1 <title> ?pv_1 . ?pv_1 <pred:value> "The Man with the Golden Gun" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
The Man with the Golden Gun
function: FilterConcept
dependencies: 1
inputs: film
function: Relate
dependencies: 2
inputs: based on
forward
function: FilterConcept
dependencies: 3
inputs: written work
function: What
dependencies: 4
Answer: The Man with the Golden Gun