Question: Which one of the silent films, whose narrative location is Paris, the filming location of Hereafter, is the shortest one?
Choices:
The Scarlet Letter
Rebecca
The Last of the Mohicans
A Prairie Home Companion
Hamlet
Talk to Her
Little Women
The Hunchback of Notre Dame
Pleasantville
Paris
Answer: Paris
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "silent film" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Paris" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Hereafter" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hereafter
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: Paris
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: silent film
function: SelectAmong
dependencies: 5
inputs: duration
smallest