Question: Which is longer, the children's film Ice Age: Dawn of the Dinosaurs or The Princess and the Frog?
Choices:
Aladdin
WALL·E
Ice Age: Dawn of the Dinosaurs
Peter Pan
Winnie the Pooh
Lilo & Stitch
Beauty and the Beast
Renaissance
Shrek 2
The Princess and the Frog
Program:
function: Find
inputs: children's film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Ice Age: Dawn of the Dinosaurs
function: And
dependencies: 1
2
function: Find
inputs: The Princess and the Frog
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age: Dawn of the Dinosaurs" . ?e <genre> ?e_1 . ?e_1 <pred:name> "children's film" .   } UNION { ?e <pred:name> "The Princess and the Frog" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ice Age: Dawn of the Dinosaurs