CREATE TABLE Apartments (apt_number VARCHAR2, apt_id VARCHAR2)
CREATE TABLE Apartment_Bookings (apt_id VARCHAR2, booking_status_code VARCHAR2)

Show the apartment numbers of apartments with bookings that have status code both 'Provisional' and 'Confirmed
SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"
SELECT "T2"."apt_number" FROM "Apartment_Bookings" "T1" JOIN "Apartments" "T2" ON "T1"."apt_id" = "T2"."apt_id" WHERE "Confirmed" = "T1"."booking_status_code" INTERSECT SELECT "T2"."apt_number" FROM "Apartment_Bookings" "T1" JOIN "Apartments" "T2" ON "T1"."apt_id" = "T2"."apt_id" WHERE "Provisional" = "T1"."booking_status_code"