Question: Which movie is shorter, The Ring (the one whose box office is 249348933 United States dollar) or Salmon Fishing in the Yemen?
Choices:
The Towering Inferno
Curse of the Golden Flower
Talk to Her
A Prairie Home Companion
The Ring
The Fifth Element
Salmon Fishing in the Yemen
Rebecca
The Hunchback of Notre Dame
Training Day
Program:
function: Find
inputs: The Ring
function: FilterNum
dependencies: 0
inputs: box office
249348933 United States dollar
=
function: Find
inputs: Salmon Fishing in the Yemen
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Ring" . ?e <box_office> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "249348933"^^xsd:double . } UNION { ?e <pred:name> "Salmon Fishing in the Yemen" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Salmon Fishing in the Yemen