Question: Is the longer work Hamlet, at 131 minutes, or The Cardinal, released in Portugal?
Choices:
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Hamlet
Talk to Her
The Cardinal
A Prairie Home Companion
Training Day
Pleasantville
Rebecca
Answer: The Cardinal
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "131"^^xsd:double . } UNION { ?e <pred:name> "The Cardinal" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Portugal" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hamlet
function: FilterNum
dependencies: 0
inputs: duration
131 minute
=
function: Find
inputs: Portugal
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: The Cardinal
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater