Question: Which has the greater duration, The Santa Clause 2 or Alice in Wonderland (which has Michael Sheen as a cast member)?
Choices:
The Flintstones in Viva Rock Vegas
Old Dogs
The Flintstones
Alice in Wonderland
John Carter
G-Force
The Santa Clause 2
Holes
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
Answer: Alice in Wonderland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Santa Clause 2" .  } UNION { ?e <pred:name> "Alice in Wonderland" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Sheen" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Santa Clause 2
function: Find
inputs: Michael Sheen
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater