Question: Which movie is longer, The Adventures of Pluto Nash or Mona Lisa (the one that origins from United Kingdom)?
Choices:
The Adventures of Pluto Nash
Mona Lisa
Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
Pleasantville
Training Day
The Towering Inferno
Program:
function: Find
inputs: The Adventures of Pluto Nash
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Mona Lisa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Adventures of Pluto Nash" .  } UNION { ?e <pred:name> "Mona Lisa" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mona Lisa