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