Question: Which movie is shorter, Catwoman (the one that has Alex Borstein as a cast member) or Milan (the one whose duration is 155 minute)?
Choices:
Curse of the Golden Flower
Rebecca
The Towering Inferno
The Fifth Element
Catwoman
A Prairie Home Companion
Training Day
Pleasantville
Talk to Her
The Hunchback of Notre Dame
Answer: Catwoman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Catwoman" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Alex Borstein" . } UNION { ?e <pred:name> "Milan" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "155"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Alex Borstein
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Find
inputs: Milan
function: FilterNum
dependencies: 4
inputs: duration
155 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less