Question: Which movie is shorter, A Christmas Carol (the one whose genre is musical film) or Starship Troopers (the one whose publication date is 1998-01-02)?
Choices:
The Goodbye Girl
The Three Musketeers
The Challenge
A Streetcar Named Desire
The Music Man
A Christmas Carol
All Quiet on the Western Front
Luther
The Late Shift
Starship Troopers
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 1
2
function: Find
inputs: Starship Troopers
function: FilterDate
dependencies: 4
inputs: publication date
1998-01-02
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Christmas Carol" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" . } UNION { ?e <pred:name> "Starship Troopers" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-01-02"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: A Christmas Carol