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