Write a SQL query to find the top 3 most reviewed hotels in each city by average rating.
Use the hotels and reviews tables. Include only hotels with at least one non-null rating.
city, hotel_id, hotel_name, review_count, average_rating, and city_rank.| Column | Type | Description |
|---|---|---|
| hotel_idPK | INT | Unique hotel identifier |
| hotel_name | VARCHAR(150) | Hotel name |
| city | VARCHAR(100) | City where the hotel is located |
| Column | Type | Description |
|---|---|---|
| review_idPK | INT | Unique review identifier |
| hotel_id | INT | Hotel being reviewed |
| rating | DECIMAL(2,1) | Guest rating from 1.0 to 5.0 |