Write a SQL query using joins and aggregates to calculate the average booking value for users who purchased Price Lock compared to those who did not at Hopper.
Use the provided users, bookings, and price_lock_purchases tables. Booking rows with a NULL booking_value do not contribute to the average.
Output
- One row per Price Lock status.
- Columns:
price_lock_status and average_booking_value.
- Include purchased and non-purchased users, round the average to two decimal places, and order purchased users first.