Question: Does Cold Mountain with Jude Law as a cast member or The Lady, released in Thailand, have the longer run-time?
Choices:
Training Day
Talk to Her
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Cold Mountain
The Fifth Element
The Towering Inferno
The Lady
Program:
function: Find
inputs: Jude Law
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Cold Mountain
function: And
dependencies: 1
2
function: Find
inputs: Thailand
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Lady
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cold Mountain" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jude Law" .   } UNION { ?e <pred:name> "The Lady" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Thailand" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cold Mountain