There is a courier table of the form:
region, courier, date_from, date_to date_from and date_to are the dates from which the courier is busy.
A request also comes to this page with two dates - you need to select all couriers that were at work at this time. How to do it?