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