Question: Which movie is longer, Fist of the North Star (the one whose release region is Japan) or Arizona (the one whose duration is 50 minute)?
Choices:
Fist of the North Star
The Hunchback of Notre Dame
Rebecca
A Prairie Home Companion
Arizona
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Talk to Her
Training Day
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Fist of the North Star
function: And
dependencies: 1
2
function: Find
inputs: Arizona
function: FilterNum
dependencies: 4
inputs: duration
50 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fist of the North Star" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Japan" . } UNION { ?e <pred:name> "Arizona" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "50"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fist of the North Star