Question: Which movie is shorter, Cinderella (the one that is originally aired on American Broadcasting Company) or Labyrinth (the one whose number of episodes is 2)?
Choices: The Three Musketeers
The Challenge
Labyrinth
The Goodbye Girl
Shackleton
All Quiet on the Western Front
The Late Shift
The Music Man
A Streetcar Named Desire
Cinderella
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cinderella" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "American Broadcasting Company" . } UNION { ?e <pred:name> "Labyrinth" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Cinderella
function: And
dependencies: 1
2
function: Find
inputs: Labyrinth
function: FilterNum
dependencies: 4
inputs: number of episodes
2
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Cinderella