Question: Which is longer, the Canadian version of The Nutty Professor, or Eastern Promises?
Choices:
Rebecca
The Nutty Professor
Pleasantville
Curse of the Golden Flower
Eastern Promises
The Towering Inferno
The Fifth Element
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Nutty Professor
function: And
dependencies: 1
2
function: Find
inputs: Eastern Promises
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Nutty Professor" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Eastern Promises" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Eastern Promises