Question: Which movie is longer, Why We Fight (the one whose distributor is Sony Pictures Classics) or Beloved (the one whose release region is United States of America)?
Choices:
A Prairie Home Companion
Beloved
Training Day
Pleasantville
The Fifth Element
Why We Fight
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: Sony Pictures Classics
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Why We Fight
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Beloved
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Why We Fight" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Sony Pictures Classics" .   } UNION { ?e <pred:name> "Beloved" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Beloved