Question: Which one has fewer seasons, CBS Schoolbreak Special or Chicago Fire (the one whose start time is 2012-10-10) ?
Choices:
Saturday Night's Main Event
Dancing with the Stars
Bleak House
Seinfeld
CBS Schoolbreak Special
Phineas and Ferb
Game of Thrones
Chicago Fire
Robot Chicken
Six Feet Under
Answer: Chicago Fire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "CBS Schoolbreak Special" . } UNION { ?e <pred:name> "Chicago Fire" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2012-10-10"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: CBS Schoolbreak Special
function: Find
inputs: Chicago Fire
function: FilterDate
dependencies: 1
inputs: start time
2012-10-10
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
less