Question: Which show has more episodes, CSI: Crime Scene Investigation or The A-Team (the one whose end time is 1987-03-08)?
Choices: Saturday Night's Main Event
Dancing with the Stars
Seinfeld
Game of Thrones
Six Feet Under
Bleak House
CSI: Crime Scene Investigation
Robot Chicken
American Horror Story
The A-Team
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "CSI: Crime Scene Investigation" . } UNION { ?e <pred:name> "The A-Team" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1987-03-08"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: CSI: Crime Scene Investigation
function: Find
inputs: The A-Team
function: FilterDate
dependencies: 1
inputs: end time
1987-03-08
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
Answer: CSI: Crime Scene Investigation