Question: Which is longer, The Transformers: The Movie or The Adventures of Tintin, with Simon Pegg as a voice actor.
Choices:
Shrek 2
WALL·E
The Transformers: The Movie
Renaissance
The Rescuers
Beauty and the Beast
Peter Pan
The Adventures of Tintin
Aladdin
Lilo & Stitch
Program:
function: Find
inputs: The Transformers: The Movie
function: Find
inputs: Simon Pegg
function: Relate
dependencies: 1
inputs: voice actor
backward
function: Find
inputs: The Adventures of Tintin
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Transformers: The Movie" .  } UNION { ?e <pred:name> "The Adventures of Tintin" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Simon Pegg" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Adventures of Tintin