Question: Which movie is longer, Up (the one that uses the language English) or Rebecca?
Choices:
The Music Man
Up
Shackleton
The Goodbye Girl
Rebecca
The Late Shift
All Quiet on the Western Front
A Streetcar Named Desire
A Christmas Carol
The Challenge
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Up
function: And
dependencies: 1
2
function: Find
inputs: Rebecca
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Up" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Rebecca" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Up