Question: Which is longer, Batman: Gotham Knight or A Streetcar Named Desire (the one that has Ann-Margret as a cast member)?
Choices:
Shackleton
The Goodbye Girl
A Streetcar Named Desire
The Late Shift
The Challenge
Batman: Gotham Knight
All Quiet on the Western Front
The Three Musketeers
Luther
The Music Man
Answer: A Streetcar Named Desire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman: Gotham Knight" .  } UNION { ?e <pred:name> "A Streetcar Named Desire" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ann-Margret" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Batman: Gotham Knight
function: Find
inputs: Ann-Margret
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: A Streetcar Named Desire
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater