Question: Which movie is longer, Hannah Arendt (the one that origins from Germany) or In the Mood for Love?
Choices:
The Towering Inferno
Training Day
Rebecca
The Hunchback of Notre Dame
Pleasantville
In the Mood for Love
Talk to Her
Hannah Arendt
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Hannah Arendt
function: And
dependencies: 1
2
function: Find
inputs: In the Mood for Love
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannah Arendt" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "In the Mood for Love" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hannah Arendt