Question: Which movie is shorter, Anna Karenina (the one whose release region is Switzerland) or Magnolia?
Choices:
Training Day
Anna Karenina
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Magnolia
Curse of the Golden Flower
The Towering Inferno
Talk to Her
The Fifth Element
Program:
function: Find
inputs: Switzerland
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Anna Karenina
function: And
dependencies: 1
2
function: Find
inputs: Magnolia
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Switzerland" .   } UNION { ?e <pred:name> "Magnolia" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anna Karenina