Question: Which movie is longer, Bedknobs and Broomsticks or The Santa Clause 2?
Choices:
G-Force
The Flintstones
John Carter
Old Dogs
Holes
The Santa Clause 2
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
The Muppets
Bedknobs and Broomsticks
Program:
function: Find
inputs: Bedknobs and Broomsticks
function: Find
inputs: The Santa Clause 2
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedknobs and Broomsticks" .  } UNION { ?e <pred:name> "The Santa Clause 2" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bedknobs and Broomsticks