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