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