Question: Which movie is longer, Snow White and the Seven Dwarfs or Tarzan (the one whose production company is Walt Disney Pictures)?
Choices:
Peter Pan
Lilo & Stitch
Tarzan
Renaissance
Beauty and the Beast
Snow White and the Seven Dwarfs
Winnie the Pooh
Aladdin
The Rescuers
WALL·E
Program:
function: Find
inputs: Snow White and the Seven Dwarfs
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Tarzan
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Snow White and the Seven Dwarfs" .  } UNION { ?e <pred:name> "Tarzan" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Walt Disney Pictures" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tarzan