Question: Which has a lesser duration, Calendar Girls or Labyrinth (whose number of seasons is 1)?
Choices:
Pleasantville
A Prairie Home Companion
Calendar Girls
The Hunchback of Notre Dame
Rebecca
Labyrinth
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Training Day
Answer: Calendar Girls
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Calendar Girls" . } UNION { ?e <pred:name> "Labyrinth" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Calendar Girls
function: Find
inputs: Labyrinth
function: FilterNum
dependencies: 1
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less