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