Question: Between Toy Story 2 or Snow White and the Seven Dwarfs, which is longer?
Choices:
Renaissance
Beauty and the Beast
WALL·E
Lilo & Stitch
Toy Story 2
The Rescuers
Aladdin
Winnie the Pooh
Snow White and the Seven Dwarfs
Shrek 2
Program:
function: Find
inputs: Toy Story 2
function: Find
inputs: Snow White and the Seven Dwarfs
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Toy Story 2" .  } UNION { ?e <pred:name> "Snow White and the Seven Dwarfs" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Toy Story 2