Question: Which movie longer, Selma (the one that has Oprah Winfrey as a cast member) or Tropic Thunder?
Choices:
Selma
Curse of the Golden Flower
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Pleasantville
Rebecca
Tropic Thunder
Talk to Her
Training Day
Program:
function: Find
inputs: Oprah Winfrey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Selma
function: And
dependencies: 1
2
function: Find
inputs: Tropic Thunder
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Selma" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Oprah Winfrey" .   } UNION { ?e <pred:name> "Tropic Thunder" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Selma