Question: Which show has fewer seasons, Cheers or Edge of Darkness (the one whose end time is 1985-12-09)?
Choices: The Stand
The Ten Commandments
Battlestar Galactica
Cheers
George Washington
The Diary of Anne Frank
Edge of Darkness
The Pacific
Roots
The Civil War
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheers" . } UNION { ?e <pred:name> "Edge of Darkness" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1985-12-09"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cheers
function: Find
inputs: Edge of Darkness
function: FilterDate
dependencies: 1
inputs: end time
1985-12-09
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
less
Answer: Edge of Darkness