Question: Which movie is longer, X-Men (the one that is a notable work of Halle Berry) or Affliction?
Choices:
The Fifth Element
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
Talk to Her
Affliction
X-Men
Rebecca
Training Day
Program:
function: Find
inputs: Halle Berry
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Find
inputs: Affliction
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "X-Men" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Halle Berry" .   } UNION { ?e <pred:name> "Affliction" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Affliction