Question: Which one has more running time, La Dolce Vita or Beowulf (the one that origins from United Kingdom)?
Choices:
A Prairie Home Companion
Rebecca
The Hunchback of Notre Dame
Pleasantville
Beowulf
Talk to Her
The Fifth Element
The Towering Inferno
La Dolce Vita
Curse of the Golden Flower
Program:
function: Find
inputs: La Dolce Vita
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Beowulf
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "La Dolce Vita" .  } UNION { ?e <pred:name> "Beowulf" . ?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: La Dolce Vita