Question: Which movie is longer, The Count of Monte Cristo (the one whose duration is 125 minute) or The Firm (the one whose production company is Paramount Pictures)?
Choices:
A Prairie Home Companion
Talk to Her
Pleasantville
The Firm
Rebecca
The Towering Inferno
The Count of Monte Cristo
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
Answer: The Firm
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Count of Monte Cristo" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "125"^^xsd:double . } UNION { ?e <pred:name> "The Firm" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Count of Monte Cristo
function: FilterNum
dependencies: 0
inputs: duration
125 minute
=
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: The Firm
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater