Question: Tell me the one with the greater duration, Love Affair (which has Dan Castellaneta in its cast) or The Dreamers
Choices:
Rebecca
Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
Talk to Her
Training Day
The Hunchback of Notre Dame
The Dreamers
Love Affair
The Towering Inferno
Answer: The Dreamers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Love Affair" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dan Castellaneta" .   } UNION { ?e <pred:name> "The Dreamers" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dan Castellaneta
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Love Affair
function: And
dependencies: 1
2
function: Find
inputs: The Dreamers
function: SelectBetween
dependencies: 3
4
inputs: duration
greater