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