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