Amazon wants to clear out stock of unpopular books. Write an SQL query to find books that have sold less than 10 copies in the last year (from 2025-02-09 to 2026-02-09).
| book_id(INTEGER) | name(VARCHAR) | available_from(DATE) |
|---|---|---|
| 1 | SQL Basics | 2020-01-01 |
| 2 | Advanced Python | 2021-05-10 |
| 3 | Data Science Pro | 2026-01-20 |
| 4 | Legacy Code | 2015-12-01 |
| order_id(INTEGER) | book_id(INTEGER) | quantity(INTEGER) | dispatch_date(DATE) |
|---|---|---|---|
| 101 | 1 | 5 | 2025-12-01 |
| 102 | 1 | 6 | 2025-06-01 |
| book_id(INTEGER) | warehouse_id(INTEGER) |
|---|---|
| 1 | 501 |
| book_id(INTEGER) | name(VARCHAR) |
|---|---|
| 2 | Advanced Python |
| 4 | Legacy Code |