On eBay, price wars can occur when sellers use automated repricing tools. We want to identify sellers who are "reactively" lowering their prices.
A reactive price drop is defined as:
Write a query to find the list of sellers who have engaged in at least one such reactive price drop.
| change_id(INTEGER) | seller_id(INTEGER) | product_id(INTEGER) | previous_price(DECIMAL) | new_price(DECIMAL) | change_timestamp(TIMESTAMP) |
|---|---|---|---|---|---|
| 1 | 10 | 1 | 100 | 95 | 2026-03-04 10:00:00 |
| 2 | 20 | 1 | 100 | 94 | 2026-03-04 10:05:00 |
| 3 | 10 | 1 | 95 | 90 | 2026-03-04 10:08:00 |
| 4 | 30 | 2 | 50 | 45 | 2026-03-04 11:00:00 |
| 5 | 40 | 2 | 50 | 44 | 2026-03-04 11:02:00 |
| 6 | 50 | 2 | 50 | 48 | 2026-03-04 11:20:00 |
| seller_id(INTEGER) | reactive_drops_count(INTEGER) |
|---|---|
| 10 | 1 |
| 20 | 1 |
| 40 | 1 |