Question: Which film is shorter, Tangled (the one that has Kari Wahlgren as a voice actor) or Cars (the one that is a notable work of Owen Wilson)?
Choices:
Tangled
WALL·E
Lilo & Stitch
Renaissance
Shrek 2
Peter Pan
Cars
Beauty and the Beast
Aladdin
The Rescuers
Program:
function: Find
inputs: Kari Wahlgren
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Tangled
function: And
dependencies: 1
2
function: Find
inputs: Owen Wilson
function: Relate
dependencies: 4
inputs: notable work
forward
function: Find
inputs: Cars
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tangled" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Kari Wahlgren" .   } UNION { ?e <pred:name> "Cars" . ?e_2 <notable_work> ?e . ?e_2 <pred:name> "Owen Wilson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tangled