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