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