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