A price_log table has day_num INTEGER, price INTEGER — one row per day, days numbered consecutively starting at 1 with no gaps.
Group consecutive days that share the same price into ranges. Return price, start_day, end_day for each range, sorted by start_day.