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