Question: Which movie is longer, Bedtime Stories (the one whose production company is Happy Madison Productions) or Alvin and the Chipmunks: The Squeakquel?
Choices:
The Muppets
The Flintstones
Alvin and the Chipmunks: Chipwrecked
Old Dogs
Holes
G-Force
National Treasure: Book of Secrets
Bedtime Stories
Alvin and the Chipmunks: The Squeakquel
The Flintstones in Viva Rock Vegas
Answer: Bedtime Stories
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedtime Stories" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Happy Madison Productions" .   } UNION { ?e <pred:name> "Alvin and the Chipmunks: The Squeakquel" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Happy Madison Productions
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Bedtime Stories
function: And
dependencies: 1
2
function: Find
inputs: Alvin and the Chipmunks: The Squeakquel
function: SelectBetween
dependencies: 3
4
inputs: duration
greater