Question: Is the run-time shorter on Cars, with the voice of Tony Shalhoub, or The Little Mermaid, produced by Howard Ashman?
Choices:
Peter Pan
Lilo & Stitch
The Little Mermaid
The Rescuers
Cars
WALL·E
Beauty and the Beast
Renaissance
Aladdin
Winnie the Pooh
Program:
function: Find
inputs: Tony Shalhoub
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Cars
function: And
dependencies: 1
2
function: Find
inputs: Howard Ashman
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Little Mermaid
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cars" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Tony Shalhoub" .   } UNION { ?e <pred:name> "The Little Mermaid" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Howard Ashman" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Little Mermaid