Question: Which is longer, Abraham Lincoln whose public domain date is 1958-01-01 or Yankee Doodle Dandy?
Choices:
Curse of the Golden Flower
The Fifth Element
Talk to Her
Abraham Lincoln
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Training Day
Yankee Doodle Dandy
The Towering Inferno
Answer: Yankee Doodle Dandy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Abraham Lincoln" . ?e <public_domain_date> ?pv_1 . ?pv_1 <pred:date> "1958-01-01"^^xsd:date . } UNION { ?e <pred:name> "Yankee Doodle Dandy" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Abraham Lincoln
function: FilterDate
dependencies: 0
inputs: public domain date
1958-01-01
=
function: Find
inputs: Yankee Doodle Dandy
function: SelectBetween
dependencies: 1
2
inputs: duration
greater