Question: Which film is shorter, Puss in Boots (the one whose narrative location is United States of America) or From Russia with Love?
Choices:
Code Geass
Wonder Woman
The Polar Express
Ponyo on the Cliff by the Sea
Superman
Puss in Boots
From Russia with Love
Magic Knight Rayearth
A Christmas Carol
My-HiME
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Puss in Boots
function: And
dependencies: 1
2
function: Find
inputs: From Russia with Love
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Puss in Boots" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "From Russia with Love" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Puss in Boots