Question: Which movie is longer, Toy Story 2 or The Incredibles (the one whose script is wrote by Brad Bird)?
Choices:
Winnie the Pooh
WALL·E
Lilo & Stitch
Beauty and the Beast
Aladdin
Toy Story 2
The Incredibles
Renaissance
The Rescuers
Peter Pan
Answer: The Incredibles
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Toy Story 2" .  } UNION { ?e <pred:name> "The Incredibles" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Brad Bird" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Toy Story 2
function: Find
inputs: Brad Bird
function: Relate
dependencies: 1
inputs: screenwriter
backward
function: Find
inputs: The Incredibles
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater