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