Question: Which movie is longer, Hancock or Thor (the one whose director is Kenneth Branagh)?
Choices:
Thor
Hancock
The Towering Inferno
Talk to Her
The Fifth Element
A Prairie Home Companion
Training Day
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Answer: Thor
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hancock" .  } UNION { ?e <pred:name> "Thor" . ?e <director> ?e_1 . ?e_1 <pred:name> "Kenneth Branagh" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hancock
function: Find
inputs: Kenneth Branagh
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: Thor
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater