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