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