Question: Which movie is shorter, Kung Fu Panda (the one whose release region is New Zealand) or Cinderella (the one whose duration is 74 minute)?
Choices:
Cinderella
Winnie the Pooh
Aladdin
Kung Fu Panda
Beauty and the Beast
Peter Pan
Shrek 2
The Rescuers
Lilo & Stitch
Renaissance
Program:
function: Find
inputs: New Zealand
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Kung Fu Panda
function: And
dependencies: 1
2
function: Find
inputs: Cinderella
function: FilterNum
dependencies: 4
inputs: duration
74 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kung Fu Panda" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "New Zealand" . } UNION { ?e <pred:name> "Cinderella" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "74"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cinderella