Question: Which has a greater duration, Romeo and Juliet (whose release region is United States of America) or Jackie Brown (which has LisaGay Hamilton as a cast member)?
Choices:
The Towering Inferno
Rebecca
The Fifth Element
Talk to Her
Curse of the Golden Flower
Training Day
Pleasantville
A Prairie Home Companion
Romeo and Juliet
Jackie Brown
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: LisaGay Hamilton
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Jackie Brown
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Romeo and Juliet" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Jackie Brown" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "LisaGay Hamilton" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jackie Brown