Question: Which has a lesser duration, Kung Fu Panda 2 (which has origins from United States of America) or Hercules (which has voice actor Danny DeVito)?
Choices:
Shrek 2
Kung Fu Panda 2
WALL·E
Hercules
Beauty and the Beast
Aladdin
The Rescuers
Renaissance
Peter Pan
Winnie the Pooh
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Kung Fu Panda 2
function: And
dependencies: 1
2
function: Find
inputs: Danny DeVito
function: Relate
dependencies: 4
inputs: voice actor
backward
function: Find
inputs: Hercules
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kung Fu Panda 2" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Hercules" . ?e <voice_actor> ?e_2 . ?e_2 <pred:name> "Danny DeVito" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kung Fu Panda 2