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