Question: Is Rock of Ages, released in Serbia, or All About Steve the longer work?
Choices:
Talk to Her
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
Rock of Ages
The Fifth Element
Curse of the Golden Flower
Rebecca
All About Steve
A Prairie Home Companion
Program:
function: Find
inputs: Serbia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Rock of Ages
function: And
dependencies: 1
2
function: Find
inputs: All About Steve
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rock of Ages" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Serbia" .   } UNION { ?e <pred:name> "All About Steve" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rock of Ages