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