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