Question: Which movie is longer, Shark Tale (the one that has Angelina Jolie as a voice actor) or Happy Feet (the one whose director of photography is David Hyde Pierce)?
Choices: Lilo & Stitch
Aladdin
WALL·E
The Rescuers
Shark Tale
Shrek 2
Peter Pan
Beauty and the Beast
Renaissance
Happy Feet
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shark Tale" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Angelina Jolie" .   } UNION { ?e <pred:name> "Happy Feet" . ?e <director_of_photography> ?e_2 . ?e_2 <pred:name> "David Hyde Pierce" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Angelina Jolie
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Shark Tale
function: And
dependencies: 1
2
function: Find
inputs: David Hyde Pierce
function: Relate
dependencies: 4
inputs: director of photography
backward
function: Find
inputs: Happy Feet
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Happy Feet