Question: Which movie is longer, Hannah Arendt (the one whose genre is drama film) or Taxi (the one that has Ann-Margret as a cast member)?
Choices:
A Prairie Home Companion
The Towering Inferno
Hannah Arendt
Training Day
Pleasantville
The Fifth Element
Rebecca
Taxi
Talk to Her
Curse of the Golden Flower
Answer: Hannah Arendt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannah Arendt" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Taxi" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ann-Margret" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Hannah Arendt
function: And
dependencies: 1
2
function: Find
inputs: Ann-Margret
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Taxi
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater