Question: Which movie is longer, Oliver Twist (the one whose distributor is First National) or All the President's Men?
Choices:
The Towering Inferno
Oliver Twist
Training Day
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Talk to Her
All the President's Men
Pleasantville
Answer: All the President's Men
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oliver Twist" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "First National" .   } UNION { ?e <pred:name> "All the President's Men" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: First National
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Oliver Twist
function: And
dependencies: 1
2
function: Find
inputs: All the President's Men
function: SelectBetween
dependencies: 3
4
inputs: duration
greater