Question: Which movie is longer, Kung Fu Panda 2 (the one that has Jean-Claude Van Damme as a voice actor) or Pinocchio (the one whose box office is 84254167 United States dollar)?
Choices: Lilo & Stitch
Shrek 2
Aladdin
The Rescuers
Winnie the Pooh
Pinocchio
Peter Pan
Renaissance
Kung Fu Panda 2
Beauty and the Beast
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kung Fu Panda 2" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Jean-Claude Van Damme" . } UNION { ?e <pred:name> "Pinocchio" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "84254167"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jean-Claude Van Damme
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Kung Fu Panda 2
function: And
dependencies: 1
2
function: Find
inputs: Pinocchio
function: FilterNum
dependencies: 4
inputs: box office
84254167 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Kung Fu Panda 2