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