Question: which one is longer, Bedknobs and Broomsticks or Pirates of the Caribbean on Stranger Tides?
Choices:
Alvin and the Chipmunks: Chipwrecked
The Muppets
John Carter
Bedknobs and Broomsticks
Old Dogs
National Treasure: Book of Secrets
The Flintstones in Viva Rock Vegas
Holes
The Flintstones
Pirates of the Caribbean: On Stranger Tides
Program:
function: Find
inputs: Bedknobs and Broomsticks
function: Find
inputs: Pirates of the Caribbean: On Stranger Tides
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedknobs and Broomsticks" .  } UNION { ?e <pred:name> "Pirates of the Caribbean: On Stranger Tides" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pirates of the Caribbean: On Stranger Tides