Question: Which movie is shorter, The Damned (the one whose distributor is IFC Films) or Pacific Palisades (the one whose narrative location is United States of America)?
Choices:
Talk to Her
The Damned
Pacific Palisades
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
Training Day
The Fifth Element
The Towering Inferno
Program:
function: Find
inputs: IFC Films
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Damned
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Pacific Palisades
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Damned" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "IFC Films" .   } UNION { ?e <pred:name> "Pacific Palisades" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Damned