Question: Which movie is shorter, The Muppets or Holes (the one whose production company is Walt Disney Studios Motion Pictures)?
Choices:
Old Dogs
Alvin and the Chipmunks: Chipwrecked
The Flintstones
Holes
John Carter
Gulliver's Travels
G-Force
Enchanted
National Treasure: Book of Secrets
The Muppets
Program:
function: Find
inputs: The Muppets
function: Find
inputs: Walt Disney Studios Motion Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Holes
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Muppets" .  } UNION { ?e <pred:name> "Holes" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Walt Disney Studios Motion Pictures" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Muppets