Question: Which is shorter, The Doors starring Debi Mazar or The Phantom of the Opera whose end time is 1990-03-19?
Choices: Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
The Phantom of the Opera
The Doors
A Prairie Home Companion
The Fifth Element
Training Day
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Doors" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Debi Mazar" . } UNION { ?e <pred:name> "The Phantom of the Opera" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1990-03-19"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Debi Mazar
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Doors
function: And
dependencies: 1
2
function: Find
inputs: The Phantom of the Opera
function: FilterDate
dependencies: 4
inputs: end time
1990-03-19
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The Doors