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