Question: Which is shorter, Independence Day starring Dianne Wiest or Little Women published on 1933-01-01?
Choices:
Independence Day
Talk to Her
Pleasantville
The Hunchback of Notre Dame
Little Women
Curse of the Golden Flower
The Fifth Element
Training Day
The Towering Inferno
Rebecca
Answer: Independence Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Independence Day" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dianne Wiest" . } UNION { ?e <pred:name> "Little Women" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1933-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dianne Wiest
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Independence Day
function: And
dependencies: 1
2
function: Find
inputs: Little Women
function: FilterDate
dependencies: 4
inputs: publication date
1933-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less