Question: Which movie is longer, The Shipping News (the one that has Scott Glenn as a cast member) or A Streetcar Named Desire (the one that was nominated for Academy Award for Best Costume Design)?
Choices:
The Shipping News
The Fifth Element
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Training Day
Rebecca
A Prairie Home Companion
Talk to Her
A Streetcar Named Desire
Answer: A Streetcar Named Desire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Shipping News" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Scott Glenn" .   } UNION { ?e <pred:name> "A Streetcar Named Desire" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Costume Design" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Scott Glenn
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Shipping News
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Costume Design
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: A Streetcar Named Desire
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater