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