Question: Which movie is longer, The Prince of Egypt or The Incredibles (the one whose script is wrote by Brad Bird)?
Choices:
Aladdin
The Prince of Egypt
Shrek 2
Lilo & Stitch
The Incredibles
WALL·E
Winnie the Pooh
Renaissance
Peter Pan
The Rescuers
Answer: The Incredibles
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Prince of Egypt" .  } 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: The Prince of Egypt
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