Question: Which movie is longer, Chicken Little (the one that has Steve Zahn as a voice actor) or Robots (the one whose duration is 91 minute)?
Choices:
WALL·E
Lilo & Stitch
Peter Pan
Aladdin
Robots
Beauty and the Beast
Shrek 2
Chicken Little
Renaissance
Winnie the Pooh
Program:
function: Find
inputs: Steve Zahn
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Chicken Little
function: And
dependencies: 1
2
function: Find
inputs: Robots
function: FilterNum
dependencies: 4
inputs: duration
91 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chicken Little" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Steve Zahn" . } UNION { ?e <pred:name> "Robots" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "91"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robots