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