Question: Which movie is shorter, On Her Majesty's Secret Service (the one whose release region is United States of America) or Guess Who's Coming to Dinner?
Choices:
Guess Who's Coming to Dinner
The Hunchback of Notre Dame
A Prairie Home Companion
On Her Majesty's Secret Service
Talk to Her
The Towering Inferno
Rebecca
Curse of the Golden Flower
The Fifth Element
Pleasantville
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: On Her Majesty's Secret Service
function: And
dependencies: 1
2
function: Find
inputs: Guess Who's Coming to Dinner
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "On Her Majesty's Secret Service" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Guess Who's Coming to Dinner" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Guess Who's Coming to Dinner