Question: Which is longer, Lady in the Water or Bad Teacher released in the USA?
Choices:
The Towering Inferno
Curse of the Golden Flower
Lady in the Water
Training Day
Bad Teacher
Rebecca
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
Answer: Lady in the Water
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lady in the Water" .  } UNION { ?e <pred:name> "Bad Teacher" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lady in the Water
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater