Question: Which has a greater duration, A Midsummer Night's Dream (which has cast member Dominic West) or X-Men: First Class?
Choices: Talk to Her
A Midsummer Night's Dream
The Hunchback of Notre Dame
Curse of the Golden Flower
X-Men: First Class
The Towering Inferno
Rebecca
A Prairie Home Companion
Pleasantville
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Midsummer Night's Dream" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dominic West" .   } UNION { ?e <pred:name> "X-Men: First Class" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dominic West
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: A Midsummer Night's Dream
function: And
dependencies: 1
2
function: Find
inputs: X-Men: First Class
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: X-Men: First Class