Question: Which movie is shorter, Anna Karenina (the one whose duration is 139 minute) or Carrie (the one whose release region is Portugal)?
Choices:
The Fifth Element
Pleasantville
The Towering Inferno
A Prairie Home Companion
Anna Karenina
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Carrie
Rebecca
Answer: Carrie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anna Karenina" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "139"^^xsd:double . } UNION { ?e <pred:name> "Carrie" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Portugal" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Anna Karenina
function: FilterNum
dependencies: 0
inputs: duration
139 minute
=
function: Find
inputs: Portugal
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Carrie
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less