Write a SQL query to identify neighborhoods where home prices have increased by more than 10% year-over-year for three consecutive quarters at Redfin.
Use the quarterly neighborhood price data provided. Treat a quarter as qualifying only when its median sale price exceeds the price from the same neighborhood and quarter in the prior year.
neighborhood_name, streak_start_quarter, streak_end_quarter, and qualifying_quarters.neighborhood_name, then streak_start_quarter.| Column | Type | Description |
|---|---|---|
| neighborhood_price_idPK | INT | Unique quarterly price record identifier |
| neighborhood_name | VARCHAR(100) | Redfin neighborhood name |
| quarter_start | DATE | First day of the reported quarter |
| median_sale_price | NUMERIC(12,2) | Median home sale price for the neighborhood and quarter |