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