Four queries the database grades
In a live SQL round the database grades you: the query runs, and the rows it returns are your answer. One data scientist who interviewed at Netflix in October 2025 reported that the first technical round was "pure SQL, had to actually run" (1 report), and that the second paired SQL with a case study (1 report). A report from an OpenAI data scientist loop, published in September 2026, describes 20 to 25 minutes of hands-on SQL in the live screen (1 report). A prep site's question bank lists an Airbnb screen question, linked to an October 2025 report, that asks you to "build a user-day panel for the inclusive date range" (1 source). Each is a single report, so read them as signals, not a syllabus. Our version of the practice reads like this:
A SQLite table
bookings(booking_id, guest_id, listing_id, city, booked_on, nights, price)holds one row per booking, withbooked_onas ISO text. Write four queries: each city's top 2 listings by revenue, each guest's days to their second booking, each city's bookings in the 7 days ending on each date, and a guest-day panel with a row for every guest on every day in the data's range.
The practice comes in four levels, one query each. Level 1 is TOP_LISTINGS_BY_CITY, ties to the lower listing_id. Level 2 is DAYS_TO_SECOND_BOOKING, NULL for guests with one booking. Level 3 is ROLLING_7D. Level 4 is GUEST_DAY_PANEL, with 0 on the days a guest didn't book. Each level has a broken version that runs, returns plausible numbers and fails.
You don't write them yet. The lesson shows every trap on a small table of its own: ties, dates stored as text, frames, and the days with no rows. At the end you solve the whole problem, level by level, in an interview simulation with a 40-minute timer.
This lesson needs no other lesson first. The lesson after it reads an AI's SQL for the same traps.