Question: Which movie is shorter, The End of the Affair (the one that has Van Johnson as a cast member) or California (the one whose publication date is 1947-01-01)?
Choices: A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Training Day
Talk to Her
Rebecca
The End of the Affair
California
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The End of the Affair" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Van Johnson" . } UNION { ?e <pred:name> "California" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1947-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Van Johnson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The End of the Affair
function: And
dependencies: 1
2
function: Find
inputs: California
function: FilterDate
dependencies: 4
inputs: publication date
1947-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: California