FastPrepMost Booked Origin-Destination Route
Problems/Most Booked Origin-Destination Route

Most Booked Origin-Destination Route

Airbnb logoAirbnb● MediumFULLTIMEOA

Updated Nov 2026

QuestionConstraints

Problem statement

Source note: The report shows the goal of counting routes and the bookings table. It cuts off most of the users table and leaves out how to break ties.

Our version is about 88% the same as the reported question.

Two tables describe users and their listing reservations:

  • users stores each user's home city in origin.
  • user_booking stores one row per reservation and the booked listing's city in destination.

Find the origin-destination route or routes with the largest number of bookings. Count reservation rows, return every route tied for the maximum, and order tied routes by origin and then destination, both ascending.

Return the columns origin, destination, and booking_count.

Table schema

MySQLPostgreSQLPandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

users

Users and their home cities.

ColumnTypeNullableDescription
guest_idPKIntegerNoUnique user identifier.
originTextNoThe user's home city.

user_booking

Reservations made by users for listings in destination cities.

ColumnTypeNullableDescription
reservation_idPKIntegerNoUnique reservation identifier.
guest_idIntegerNoUser who made the reservation.
listing_idIntegerNoBooked listing identifier.
destinationTextNoCity of the booked listing.
ts_bookingTimestampNoTimestamp when the booking was made.
ds_bookingDateNoCalendar date of the booking.

Foreign key: guest_id → users(guest_id)

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
originTextNo—
destinationTextNo—
booking_countIntegerNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • users.guest_id and user_booking.reservation_id are unique and non-null.
  • Every user_booking.guest_id references one row in users.
  • origin and destination are non-null city names.
  • The input tables may be empty.
  • Each reservation row contributes exactly one booking to its route.

More Airbnb Online Assessment questions

  • In-Memory File SystemOA · Seen Nov 2026
  • Task Management SystemOA · Seen Nov 2026
  • Recipe Management SystemOA · Seen Nov 2026
  • Progressive Banking SystemOA · Seen Nov 2026
  • Credit Accounts with Scheduled TransfersOA · Seen Oct 2026
  • Parcel Attribute Store with TTLOA · Seen Oct 2026
  • Parcel Event TrackingOA · Seen Oct 2026
  • Median Home Price by CityOA · Seen Sep 2026
  • Worker Management (Promotion Track), Part 4: Full-Shift Double PayOA · Seen Sep 2026
  • Worker Management (Promotion Track), Part 3: Promotions and SalaryOA · Seen Sep 2026

Similar questions at other companies

  • Bond Holders Above the Cash Flow ThresholdBirla Pivot · OA
  • Prepare Taxi Driver Classification DataBoston Consulting Group · OABoston Consulting Group interview questions
  • Find the Dominant SellerSquadStack.ai · OA
  • Track the Book and Mark Final PnLMillennium · OAMillennium interview questions
  • Market Share Ticker with ImbalanceWolverine Trading · OAWolverine Trading interview questions
  • Overloaded Game Account InventoriesWells Fargo · OAWells Fargo interview questions
  • Transaction Totals and Ranked Failure ReasonsIntuit · OAIntuit interview questions
  • Employees Joined per MonthOdoo · OAOdoo interview questions
  • Bond Haircut by Ratings and MaturityJane Street · OAJane Street interview questions
  • Customer Order FeesAdobe · OAAdobe interview questions

Airbnb interview experiences

  • Airbnb OA · November 2026
  • Airbnb Campus and Full-Time SWE OA / Interviews: 9 Experiences
  • Airbnb Intern Phone Interviews: 21 Experiences (Part 7 of 7)
  • Airbnb Intern OA and Phone Screens: 17 Experiences (Part 6 of 7)
  • Airbnb Intern OA and Onsite Rounds: 16 Experiences (Part 5 of 7)
  • Airbnb Intern OA, Diplomacy Game: 19 Experiences (Part 4 of 7)
All Airbnb interview questionsSee Airbnb hiring insights