Question: Which one is shorter, MIlk, published on 1st September 2008, or Alice, with COlm Meaney as a cast member?
Choices:
Curse of the Golden Flower
Training Day
The Towering Inferno
The Fifth Element
Milk
Talk to Her
Alice
Rebecca
The Hunchback of Notre Dame
A Prairie Home Companion
Answer: Milk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Milk" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2008-09-01"^^xsd:date . } UNION { ?e <pred:name> "Alice" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Colm Meaney" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Milk
function: FilterDate
dependencies: 0
inputs: publication date
2008-09-01
=
function: Find
inputs: Colm Meaney
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Alice
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less