Question: Which is longer, Young Adam or Basic Instinct?
Choices:
Basic Instinct
The Fifth Element
Curse of the Golden Flower
Pleasantville
Rebecca
A Prairie Home Companion
The Hunchback of Notre Dame
The Towering Inferno
Young Adam
Training Day
Program:
function: Find
inputs: Young Adam
function: Find
inputs: Basic Instinct
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Young Adam" .  } UNION { ?e <pred:name> "Basic Instinct" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Basic Instinct