Question: Which one is shorter, Barney Miller or Lost in Space (the one whose date of first performance is 1965-09-15)  ?
Choices:
Barney Miller
Lost in Space
Bleak House
Seinfeld
Game of Thrones
Phineas and Ferb
American Horror Story
Six Feet Under
Robot Chicken
Saturday Night's Main Event
Program:
function: Find
inputs: Barney Miller
function: Find
inputs: Lost in Space
function: FilterDate
dependencies: 1
inputs: date of first performance
1965-09-15
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barney Miller" . } UNION { ?e <pred:name> "Lost in Space" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:date> "1965-09-15"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barney Miller