Question: Which one, The SpongeBob SquarePants Movie (the one that has Lori Alan as a voice actor) or Secret of the Wings, has greater duration?
Choices:
The SpongeBob SquarePants Movie
Winnie the Pooh
Beauty and the Beast
WALL·E
Lilo & Stitch
The Rescuers
Aladdin
Secret of the Wings
Shrek 2
Renaissance
Program:
function: Find
inputs: Lori Alan
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: The SpongeBob SquarePants Movie
function: And
dependencies: 1
2
function: Find
inputs: Secret of the Wings
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The SpongeBob SquarePants Movie" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Lori Alan" .   } UNION { ?e <pred:name> "Secret of the Wings" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The SpongeBob SquarePants Movie