Question: Between Hamlet, published on 1921-01-01, or teen film Bobby, which is shorter?
Choices: The Scarlet Letter
Earth
A Prairie Home Companion
Hamlet
Little Women
Pleasantville
The Last of the Mohicans
The Hunchback of Notre Dame
Bobby
Paris
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1921-01-01"^^xsd:date . } UNION { ?e <pred:name> "Bobby" . ?e <genre> ?e_1 . ?e_1 <pred:name> "teen film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hamlet
function: FilterDate
dependencies: 0
inputs: publication date
1921-01-01
=
function: Find
inputs: teen film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Bobby
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Hamlet