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