Question: Which film has greater duration, Hope Springs (the one with Oliver Platt as a cast member) or Batman Begins (the one whose release region is Kuwait)?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
Training Day
Batman Begins
A Prairie Home Companion
Curse of the Golden Flower
Rebecca
Talk to Her
Program:
function: Find
inputs: Oliver Platt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hope Springs
function: And
dependencies: 1
2
function: Find
inputs: Kuwait
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Batman Begins
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hope Springs" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Oliver Platt" .   } UNION { ?e <pred:name> "Batman Begins" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Kuwait" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Batman Begins