Question: Which movie is shorter, Wimbledon (the one that origins from United States of America) or Thomas Jefferson (the one whose director is Ken Burns)?
Choices:
The Towering Inferno
Training Day
The Fifth Element
Thomas Jefferson
Talk to Her
A Prairie Home Companion
Wimbledon
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Wimbledon
function: And
dependencies: 1
2
function: Find
inputs: Ken Burns
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: Thomas Jefferson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wimbledon" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Thomas Jefferson" . ?e <director> ?e_2 . ?e_2 <pred:name> "Ken Burns" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wimbledon