Etsy sellers want to re-engage customers who show interest in a product but do not complete the purchase. An "Abandoned Cart" item is defined as a product added to a cart that was not purchased by that same user within 48 hours of the addition.
Write an SQL query to list users and the products they abandoned.
| addition_id(INTEGER) | user_id(INTEGER) | product_id(INTEGER) | added_at(TIMESTAMP) |
|---|---|---|---|
| 1 | 1 | 501 | 2026-02-01 10:00:00 |
| 2 | 1 | 502 | 2026-02-08 12:00:00 |
| 3 | 2 | 501 | 2026-02-09 09:00:00 |
| 4 | 3 | 701 | 2026-02-05 15:00:00 |
| 5 | 4 | 888 | 2026-02-10 10:00:00 |
| 6 | 5 | 999 | 2026-02-01 08:00:00 |
| order_id(INTEGER) | user_id(INTEGER) | product_id(INTEGER) | order_placed_at(TIMESTAMP) |
|---|---|---|---|
| 1001 | 1 | 501 | 2026-02-01 10:30:00 |
| 1002 | 5 | 999 | 2026-02-04 08:00:00 |
| user_id(INTEGER) | product_id(INTEGER) | added_at(TIMESTAMP) |
|---|---|---|
| 1 | 502 | 2026-02-08 12:00:00 |
| 3 | 701 | 2026-02-05 15:00:00 |
| 5 | 999 | 2026-02-01 08:00:00 |