Question: Is the longer work The Haunting, distributed by Metro-Goldwyn-Mayer, or Caravaggio, clocking in at 106 minutes?
Choices:
The Fifth Element
Curse of the Golden Flower
The Haunting
Caravaggio
Training Day
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
Rebecca
Answer: The Haunting
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Haunting" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" . } UNION { ?e <pred:name> "Caravaggio" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "106"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Haunting
function: And
dependencies: 1
2
function: Find
inputs: Caravaggio
function: FilterNum
dependencies: 4
inputs: duration
106 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater