Question: Which movie is shorter, Mary Shelley (the one whose narrative location is United Kingdom) or The Ring (the one whose official website is http://www.ring-themovie.com/)?
Choices:
Pleasantville
Rebecca
Talk to Her
The Towering Inferno
The Fifth Element
Training Day
The Hunchback of Notre Dame
The Ring
Curse of the Golden Flower
A Prairie Home Companion
Answer: The Ring
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mary Shelley" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "The Ring" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.ring-themovie.com/" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Mary Shelley
function: And
dependencies: 1
2
function: Find
inputs: The Ring
function: FilterStr
dependencies: 4
inputs: official website
http://www.ring-themovie.com/
function: SelectBetween
dependencies: 3
5
inputs: duration
less