Question: Which movie is longer, Superbad or Unknown (the one whose release region is United States of America)?
Choices:
Superbad
Unknown
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Pleasantville
Talk to Her
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Program:
function: Find
inputs: Superbad
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Unknown
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Superbad" .  } UNION { ?e <pred:name> "Unknown" . ?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: Superbad