Question: Which is longer, Restless produced by Sony Pictures Classics or Groundhog Day?
Choices:
Training Day
A Prairie Home Companion
Rebecca
The Towering Inferno
The Hunchback of Notre Dame
Groundhog Day
Talk to Her
Pleasantville
The Fifth Element
Curse of the Golden Flower
Program:
function: Find
inputs: Sony Pictures Classics
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Restless
function: And
dependencies: 1
2
function: Find
inputs: Groundhog Day
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Restless" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Sony Pictures Classics" .   } UNION { ?e <pred:name> "Groundhog Day" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Groundhog Day