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