Question: Which has a greater duration, The Lord of the Rings: The Return of the King (whose release region is United States of America) or Nine Lives (whose composer is Edward Shearmur)?
Choices:
Rebecca
Pleasantville
Talk to Her
The Lord of the Rings: The Return of the King
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
Training Day
A Prairie Home Companion
Answer: The Lord of the Rings: The Return of the King
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lord of the Rings: The Return of the King" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Nine Lives" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Edward Shearmur" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Lord of the Rings: The Return of the King
function: And
dependencies: 1
2
function: Find
inputs: Edward Shearmur
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Nine Lives
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater