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