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