Airbnb wants to understand where users drop out of the Airbnb Homes booking funnel in the mobile app. Write a PostgreSQL query for February 2025 that measures sequential funnel engagement.
airbnb_app surface, joining valid users from users.stage, reached_users, qualified_event_count, previous_stage_users, conversion_rate, dropoff_users.search, listing_view, reservation_request, booking_confirmed.2025-02-01 00:00:00 inclusive through 2025-03-01 00:00:00 exclusive.qualified_event_count, including repeated events by the same user.NULL for the first stage's previous_stage_users, conversion_rate, and dropoff_users, and return NULL conversion when the previous-stage count is zero.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Airbnb user identifier |
| signup_date | DATE | Date the user signed up |
| country_code | VARCHAR(2) | Two-letter user country code |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique funnel event identifier |
| user_id | INT | References users.user_id |
| event_type | VARCHAR(30) | Airbnb Homes funnel action |
| event_timestamp | TIMESTAMP | Timestamp when the event occurred |
| surface | VARCHAR(20) | Product surface generating the event |