Question: Which movie is longer, The Great Gatsby (the one whose duration is 91 minute) or Insidious (the one whose release region is New Zealand)?
Choices:
Curse of the Golden Flower
The Great Gatsby
A Prairie Home Companion
Pleasantville
Talk to Her
Insidious
The Hunchback of Notre Dame
Rebecca
Training Day
The Towering Inferno
Answer: Insidious
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "91"^^xsd:double . } UNION { ?e <pred:name> "Insidious" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "New Zealand" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Great Gatsby
function: FilterNum
dependencies: 0
inputs: duration
91 minute
=
function: Find
inputs: New Zealand
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Insidious
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater