Question: Which movie is shorter, Annie (the one that has Mila Kunis as a cast member) or A Star Is Born (the one whose publication date is 1978-02-17)?
Choices:
Curse of the Golden Flower
A Star Is Born
Training Day
Pleasantville
The Towering Inferno
Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Annie
Answer: Annie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Annie" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Mila Kunis" . } UNION { ?e <pred:name> "A Star Is Born" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1978-02-17"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mila Kunis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Annie
function: And
dependencies: 1
2
function: Find
inputs: A Star Is Born
function: FilterDate
dependencies: 4
inputs: publication date
1978-02-17
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less