Question: Which movie is longer, Sayonara or Spider-Man 2 (the one that has Alfred Molina as a cast member)?
Choices:
Training Day
The Fifth Element
Talk to Her
Curse of the Golden Flower
Spider-Man 2
Sayonara
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: Sayonara
function: Find
inputs: Alfred Molina
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Spider-Man 2
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sayonara" .  } UNION { ?e <pred:name> "Spider-Man 2" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Alfred Molina" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sayonara