Question: Which movie is longer, Cleopatra (the one that has Claudette Colbert as a cast member) or Saving Private Ryan?
Choices:
Saving Private Ryan
Rebecca
Curse of the Golden Flower
The Fifth Element
Talk to Her
Training Day
Cleopatra
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: Claudette Colbert
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Cleopatra
function: And
dependencies: 1
2
function: Find
inputs: Saving Private Ryan
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cleopatra" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Claudette Colbert" .   } UNION { ?e <pred:name> "Saving Private Ryan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Saving Private Ryan