Question: Which movie is longer, The Proposition (the one that origins from United States of America) or Batman: Gotham Knight?
Choices:
Talk to Her
The Towering Inferno
The Proposition
Batman: Gotham Knight
Rebecca
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Proposition
function: And
dependencies: 1
2
function: Find
inputs: Batman: Gotham Knight
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Proposition" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Batman: Gotham Knight" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Proposition