Question: Whcih movie is longer, Meet the Fockers or Battleship (the one whose release region is Germany)?
Choices:
Rebecca
A Prairie Home Companion
The Hunchback of Notre Dame
Battleship
Curse of the Golden Flower
Talk to Her
The Fifth Element
The Towering Inferno
Training Day
Pleasantville
Program:
function: Find
inputs: Meet the Fockers
function: Find
inputs: Germany
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> "Meet the Fockers" .  } UNION { ?e <pred:name> "Battleship" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Germany" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Battleship