Question: Is 30 Days of Night or the silent film Waterloo longer in duration?
Choices:
Waterloo
30 Days of Night
Curse of the Golden Flower
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Training Day
The Fifth Element
Pleasantville
Rebecca
Program:
function: Find
inputs: 30 Days of Night
function: Find
inputs: silent film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Waterloo
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "30 Days of Night" .  } UNION { ?e <pred:name> "Waterloo" . ?e <genre> ?e_1 . ?e_1 <pred:name> "silent film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Waterloo