Question: Which movie is shorter, Metropolis (the one whose genre is film based on literature) or Mobile Suit Gundam: Char's Counterattack?
Choices: Mobile Suit Gundam: Char's Counterattack
WALL·E
Beauty and the Beast
Shrek 2
Winnie the Pooh
Aladdin
Lilo & Stitch
Peter Pan
Metropolis
The Rescuers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Metropolis" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "Mobile Suit Gundam: Char's Counterattack" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Metropolis
function: And
dependencies: 1
2
function: Find
inputs: Mobile Suit Gundam: Char's Counterattack
function: SelectBetween
dependencies: 3
4
inputs: duration
less
Answer: Metropolis