Question: Which movie is longer, The Gift (the one whose director is Sam Raimi) or The Virgin Suicides?
Choices:
Training Day
The Fifth Element
The Virgin Suicides
The Hunchback of Notre Dame
The Gift
Talk to Her
The Towering Inferno
Curse of the Golden Flower
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Sam Raimi
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Gift
function: And
dependencies: 1
2
function: Find
inputs: The Virgin Suicides
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Gift" . ?e <director> ?e_1 . ?e_1 <pred:name> "Sam Raimi" .   } UNION { ?e <pred:name> "The Virgin Suicides" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Gift