Question: Which film has the longer running time, Adventureland or Legend (released in the United States of America)?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
Legend
Curse of the Golden Flower
Adventureland
The Towering Inferno
Talk to Her
Training Day
Rebecca
Program:
function: Find
inputs: Adventureland
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Legend
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adventureland" .  } UNION { ?e <pred:name> "Legend" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Legend