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