Question: which one is longer, Secret of the Wings or Shrek 2 (which is the production company of Paramount Pictures)
Choices:
Secret of the Wings
Winnie the Pooh
Lilo & Stitch
WALL·E
Renaissance
Aladdin
The Rescuers
Shrek 2
Cinderella
Beauty and the Beast
Answer: Shrek 2
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Secret of the Wings" .  } UNION { ?e <pred:name> "Shrek 2" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Secret of the Wings
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Shrek 2
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater