Question: Which movie is longer, Hercules (the one that is a notable work of Alan Menken) or The Simpsons Movie?
Choices: Renaissance
The Simpsons Movie
Beauty and the Beast
Lilo & Stitch
Peter Pan
Aladdin
Hercules
The Rescuers
Shrek 2
Winnie the Pooh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hercules" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Alan Menken" .   } UNION { ?e <pred:name> "The Simpsons Movie" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Alan Menken
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: The Simpsons Movie
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: Hercules