Question: Which movie is shorter, Family Guy or Lost in Space (the one whose number of episodes is 83)?
Choices:
Aladdin
The Cleveland Show
Family Guy
Tiny Toon Adventures
American Dad!
The Venture Bros.
Lost in Space
Robot Chicken
Phineas and Ferb
South Park
Answer: Family Guy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Family Guy" . } UNION { ?e <pred:name> "Lost in Space" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "83"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Family Guy
function: Find
inputs: Lost in Space
function: FilterNum
dependencies: 1
inputs: number of episodes
83
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less