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