Question: Which is longer, Hans Christian Andersen, produced by Samuel Goldwyn or The Damned from the USA?
Choices:
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
The Fifth Element
Training Day
Pleasantville
Hans Christian Andersen
Rebecca
Answer: Hans Christian Andersen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hans Christian Andersen" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Samuel Goldwyn" .   } UNION { ?e <pred:name> "The Damned" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Samuel Goldwyn
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Hans Christian Andersen
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: The Damned
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater