Question: Which is longer, Hamlet that comes from the Soviet Union or musical film Franz Schubert?
Choices:
A Prairie Home Companion
Hamlet
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Talk to Her
The Towering Inferno
Training Day
Rebecca
Answer: Hamlet
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Soviet Union" .   } UNION { ?e <pred:name> "Franz Schubert" . ?e <genre> ?e_2 . ?e_2 <pred:name> "musical film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Soviet Union
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: musical film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Franz Schubert
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater