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