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