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