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