Question: Which movie is shorter, The Rainmaker (the one whose narrative location is Memphis) or Garden State?
Choices:
The Hunchback of Notre Dame
The Rainmaker
Garden State
Curse of the Golden Flower
Rebecca
Pleasantville
Talk to Her
A Prairie Home Companion
The Fifth Element
Training Day
Program:
function: Find
inputs: Memphis
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: The Rainmaker
function: And
dependencies: 1
2
function: Find
inputs: Garden State
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Rainmaker" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Memphis" .   } UNION { ?e <pred:name> "Garden State" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Garden State