Question: Which movie is longer, The History Boys or The Three Musketeers (the one whose composer is Joseph Barbera)?
Choices:
Training Day
The Three Musketeers
Rebecca
The History Boys
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
The Fifth Element
Program:
function: Find
inputs: The History Boys
function: Find
inputs: Joseph Barbera
function: Relate
dependencies: 1
inputs: composer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The History Boys" .  } UNION { ?e <pred:name> "The Three Musketeers" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Joseph Barbera" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The History Boys