Question: Which has less box office, Insidious (whose release region is Malaysia) or The X-Files (whose duration is 121 minutes)?
Choices:
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Pleasantville
Rebecca
Insidious
Curse of the Golden Flower
Training Day
Talk to Her
The X-Files
Answer: Insidious
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Insidious" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Malaysia" . } UNION { ?e <pred:name> "The X-Files" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "121"^^xsd:double . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Malaysia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Insidious
function: And
dependencies: 1
2
function: Find
inputs: The X-Files
function: FilterNum
dependencies: 4
inputs: duration
121 minute
=
function: SelectBetween
dependencies: 3
5
inputs: box office
less