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