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