Question: Is Crouching Tiger, Hidden Dragon or Pinocchio, published in 2008, the longer work?
Choices:
The Goodbye Girl
The Late Shift
The Challenge
Shackleton
Crouching Tiger, Hidden Dragon
A Streetcar Named Desire
A Christmas Carol
All Quiet on the Western Front
Pinocchio
The Three Musketeers
Answer: Pinocchio
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crouching Tiger, Hidden Dragon" . } UNION { ?e <pred:name> "Pinocchio" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 2008 . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Crouching Tiger, Hidden Dragon
function: Find
inputs: Pinocchio
function: FilterYear
dependencies: 1
inputs: publication date
2008
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater