Question: Which movie is longer, The Crucible (the one that has Frances Conroy as a cast member) or Sense and Sensibility (the one that is a notable work of Emma Thompson)?
Choices:
Sense and Sensibility
A Prairie Home Companion
The Fifth Element
The Crucible
Training Day
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
Answer: Sense and Sensibility
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Crucible" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Frances Conroy" .   } UNION { ?e <pred:name> "Sense and Sensibility" . ?e_2 <notable_work> ?e . ?e_2 <pred:name> "Emma Thompson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Frances Conroy
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Crucible
function: And
dependencies: 1
2
function: Find
inputs: Emma Thompson
function: Relate
dependencies: 4
inputs: notable work
forward
function: Find
inputs: Sense and Sensibility
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater