Question: Which was shorter, Eat Pray Love or Emma (the one whose number of episodes is 1)?
Choices:
All Quiet on the Western Front
Eat Pray Love
The Challenge
The Music Man
The Late Shift
A Streetcar Named Desire
A Christmas Carol
The Three Musketeers
The Goodbye Girl
Emma
Answer: Emma
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eat Pray Love" . } UNION { ?e <pred:name> "Emma" . ?e <number_of_episodes> ?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: Eat Pray Love
function: Find
inputs: Emma
function: FilterNum
dependencies: 1
inputs: number of episodes
1
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less