Question: What literary work derives A Clockwork Orange that is filmed in Hertfordshire?
Choices:
The Shining
Starship Troopers
A Clockwork Orange
Live and Let Die
Contact
Stardust
The Da Vinci Code
The Hours
Charlie and the Chocolate Factory
A Single Man
Program:
function: Find
inputs: Hertfordshire
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: A Clockwork Orange
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "A Clockwork Orange" . ?e_1 <filming_location> ?e_2 . ?e_2 <pred:name> "Hertfordshire" .   }
Answer: A Clockwork Orange