Question: Which is shorter 3:10 to Yuma (the one whose publication date is 2007-01-01) or Alexander (the one whose original language is Russian)?
Choices:
Training Day
Pleasantville
A Prairie Home Companion
Talk to Her
3:10 to Yuma
The Towering Inferno
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
Alexander
Answer: Alexander
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "3:10 to Yuma" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-01-01"^^xsd:date . } UNION { ?e <pred:name> "Alexander" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "Russian" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: 3:10 to Yuma
function: FilterDate
dependencies: 0
inputs: publication date
2007-01-01
=
function: Find
inputs: Russian
function: Relate
dependencies: 2
inputs: original language of film or TV show
backward
function: Find
inputs: Alexander
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less