Question: Which is longer: A Streetcar Named Desire,  nominated for an Academy Award for Best Actress, or Brothers, distributed by Lions Gate Entertainment?
Choices:
Brothers
Training Day
Rebecca
The Hunchback of Notre Dame
A Streetcar Named Desire
A Prairie Home Companion
The Fifth Element
Pleasantville
Talk to Her
The Towering Inferno
Answer: A Streetcar Named Desire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Streetcar Named Desire" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actress" .   } UNION { ?e <pred:name> "Brothers" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Lions Gate Entertainment" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Actress
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: A Streetcar Named Desire
function: And
dependencies: 1
2
function: Find
inputs: Lions Gate Entertainment
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Brothers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater