Question: Which movie is longer, Lebanon (the one whose title is לבנון) or Constantine (the one whose release region is United States of America)?
Choices:
Pleasantville
The Hunchback of Notre Dame
Rebecca
Constantine
Talk to Her
The Fifth Element
Curse of the Golden Flower
Training Day
A Prairie Home Companion
Lebanon
Program:
function: Find
inputs: Lebanon
function: FilterStr
dependencies: 0
inputs: title
לבנון
function: Find
inputs: United States of America
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Constantine
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lebanon" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "לבנון" . } UNION { ?e <pred:name> "Constantine" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Constantine