Question: Which movie is longer, The Longest Yard (the one whose publication date is 1974) or The Rock?
Choices:
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
The Longest Yard
Pleasantville
Rebecca
Training Day
A Prairie Home Companion
The Towering Inferno
The Rock
Answer: The Rock
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Longest Yard" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 1974 . } UNION { ?e <pred:name> "The Rock" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Longest Yard
function: FilterYear
dependencies: 0
inputs: publication date
1974
=
function: Find
inputs: The Rock
function: SelectBetween
dependencies: 1
2
inputs: duration
greater