Question: Which one is shorter, Along Came a Spider (the one whose composer is Jerry Goldsmith) or The Ten Commandments (the one whose publication date is 1923-11-23)   ?
Choices:
Rebecca
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Along Came a Spider
A Prairie Home Companion
The Fifth Element
Training Day
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Jerry Goldsmith
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Along Came a Spider
function: And
dependencies: 1
2
function: Find
inputs: The Ten Commandments
function: FilterDate
dependencies: 4
inputs: publication date
1923-11-23
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Along Came a Spider" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Jerry Goldsmith" . } UNION { ?e <pred:name> "The Ten Commandments" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1923-11-23"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Along Came a Spider