Question: Which movie is shorter, Astro Boy (the one whose genre is adventure film) or Finding Nemo (the one whose release region is Turkey)?
Choices:
Astro Boy
Finding Nemo
Aladdin
Shrek 2
Renaissance
WALL·E
The Rescuers
Lilo & Stitch
Beauty and the Beast
Winnie the Pooh
Answer: Astro Boy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Astro Boy" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } UNION { ?e <pred:name> "Finding Nemo" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Turkey" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: adventure film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Astro Boy
function: And
dependencies: 1
2
function: Find
inputs: Turkey
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Finding Nemo
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less