Question: Which movie is longer, Caravaggio (the one whose genre is historical period drama) or The Wrestler (the one that was nominated for London Film Critics Circle Award for Actor of the Year)?
Choices:
Curse of the Golden Flower
The Wrestler
Pleasantville
The Towering Inferno
Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
Caravaggio
Rebecca
Training Day
Answer: The Wrestler
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Caravaggio" . ?e <genre> ?e_1 . ?e_1 <pred:name> "historical period drama" .   } UNION { ?e <pred:name> "The Wrestler" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "London Film Critics Circle Award for Actor of the Year" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: historical period drama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Caravaggio
function: And
dependencies: 1
2
function: Find
inputs: London Film Critics Circle Award for Actor of the Year
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: The Wrestler
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater