Turing wants to compare listing prices from professional and non-professional hosts on its accommodation marketplace. A host is professional when they have listings in more than 5 distinct values of neighbourhood_cleansed.
Write a PostgreSQL query that compares the average listing price for both host classifications.
neighbourhood_cleansed values for each host.professional; classify all other hosts with listings as non_professional.| Column | Type | Description |
|---|---|---|
| host_idPK | INT | Unique host identifier |
| host_name | VARCHAR(100) | Host display name |
| Column | Type | Description |
|---|---|---|
| listing_idPK | INT | Unique listing identifier |
| host_id | INT | Host who owns the listing |
| neighbourhood_cleansed | VARCHAR(100) | Standardized neighborhood name |
| price | NUMERIC(10,2) | Nightly listing price |