Question: Which is shorter, Apache whose narrative location is Oklahoma or Strictly Ballroom?
Choices:
Training Day
The Fifth Element
Apache
Strictly Ballroom
The Hunchback of Notre Dame
Rebecca
Pleasantville
The Towering Inferno
A Prairie Home Companion
Talk to Her
Program:
function: Find
inputs: Oklahoma
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Apache
function: And
dependencies: 1
2
function: Find
inputs: Strictly Ballroom
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Apache" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Oklahoma" .   } UNION { ?e <pred:name> "Strictly Ballroom" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Apache