Question: Which is shorter, Kansas City whose narrative location is Missouri or The Damned  whose duration is 86 minutes?
Choices: The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Training Day
Rebecca
Kansas City
The Damned
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Missouri" . } UNION { ?e <pred:name> "The Damned" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "86"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Missouri
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Kansas City
function: And
dependencies: 1
2
function: Find
inputs: The Damned
function: FilterNum
dependencies: 4
inputs: duration
86 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The Damned