Question: Which movie is longer, Being John Malkovich or Paterson (the one that origins from United States of America)?
Choices:
The Fifth Element
Being John Malkovich
Talk to Her
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
Paterson
Rebecca
Training Day
The Towering Inferno
Answer: Paterson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Being John Malkovich" .  } UNION { ?e <pred:name> "Paterson" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Being John Malkovich
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Paterson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater