Question: Which movie is longer, Paris (the one whose distributor is Metro-Goldwyn-Mayer) or RoboCop (the one whose box office is 53424681 United States dollar)?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
RoboCop
Pleasantville
Paris
Talk to Her
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
The Fifth Element
Answer: RoboCop
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" . } UNION { ?e <pred:name> "RoboCop" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "53424681"^^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: Paris
function: And
dependencies: 1
2
function: Find
inputs: RoboCop
function: FilterNum
dependencies: 4
inputs: box office
53424681 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater