Question: Which movie is longer, Fargo (the one whose genre is neo-noir) or Being John Malkovich?
Choices:
Pleasantville
Being John Malkovich
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
Fargo
The Towering Inferno
The Fifth Element
Talk to Her
Curse of the Golden Flower
Program:
function: Find
inputs: neo-noir
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Fargo
function: And
dependencies: 1
2
function: Find
inputs: Being John Malkovich
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fargo" . ?e <genre> ?e_1 . ?e_1 <pred:name> "neo-noir" .   } UNION { ?e <pred:name> "Being John Malkovich" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Being John Malkovich