Question: Which written work is titled Charlie and the Chocolate Factory?
Choices:
Empire of the Sun
Timeline
A Single Man
Women in Love
Carrie
Midnight's Children
The Painted Veil
Charlie and the Chocolate Factory
Live and Let Die
Murder on the Orient Express
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Charlie and the Chocolate Factory
function: FilterConcept
dependencies: 1
inputs: written work
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <title> ?pv . ?pv <pred:value> "Charlie and the Chocolate Factory" .  }
Answer: Charlie and the Chocolate Factory