Question: Which movie is shorter, Madagascar: Escape 2 Africa (the one whose distributor is Paramount Pictures) or Tangled (the one whose box office is 591794936 United States dollar)?
Choices:
Shrek 2
Renaissance
Tangled
Beauty and the Beast
The Rescuers
Madagascar: Escape 2 Africa
Winnie the Pooh
Peter Pan
Lilo & Stitch
WALL·E
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Madagascar: Escape 2 Africa
function: And
dependencies: 1
2
function: Find
inputs: Tangled
function: FilterNum
dependencies: 4
inputs: box office
591794936 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Madagascar: Escape 2 Africa" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } UNION { ?e <pred:name> "Tangled" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "591794936"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madagascar: Escape 2 Africa