Question: Tell me the duration that is less, In the Loop or August (which has the narrative location of New York City)
Choices:
Talk to Her
The Hunchback of Notre Dame
In the Loop
Training Day
The Towering Inferno
August
Pleasantville
Rebecca
The Fifth Element
A Prairie Home Companion
Program:
function: Find
inputs: In the Loop
function: Find
inputs: New York City
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: August
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "In the Loop" .  } UNION { ?e <pred:name> "August" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: August