Write a SQL query to analyze weekly store performance by location, joining sales and inventory tables to identify stores with declining sell-through and low stock at Specialized Bicycle Components.
Treat low stock as total ending inventory below the store's total reorder point, and declining sell-through as lower than the prior available week.
Output
- One row per qualifying store and week, with
location, week_start, sell_through, prior_sell_through, ending_stock, and reorder_point.
- Include only weeks meeting both conditions.
- Order by
location, then week_start.