Question: Which movie is longer, New York Stories or Labyrinth (the one whose genre is drama film)?
Choices:
Pleasantville
Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
Training Day
The Towering Inferno
New York Stories
The Fifth Element
Labyrinth
Answer: New York Stories
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New York Stories" .  } UNION { ?e <pred:name> "Labyrinth" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New York Stories
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Labyrinth
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater