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