Question: Which movie is longer, Honolulu (the one that origins from United States of America) or The Devil Wears Prada (the one that has Emily Blunt as a cast member)?
Choices:
A Prairie Home Companion
The Devil Wears Prada
Pleasantville
The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
The Towering Inferno
The Fifth Element
Training Day
Honolulu
Answer: The Devil Wears Prada
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Honolulu" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "The Devil Wears Prada" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Emily Blunt" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Honolulu
function: And
dependencies: 1
2
function: Find
inputs: Emily Blunt
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater