How does ROW_NUMBER work when event types alternate?

The query selects the first six events by id. It numbers events separately within each event_type, then sorts the final result by id again. This leaves the event types interleaved in the output. Which row number will appear beside each event? Choose the correct result table.

Predict the resultWindow functionsJuniorAnalystData Engineer
Input data · iv_events
iduser_idevent_typecreated_at
11login2026-01-31 23:59:00
21login2026-01-31 23:59:00
31view2026-02-01 00:00:00
42login2026-02-01 08:00:00
52view2026-02-01 08:05:00
62view2026-02-01 08:05:00
73login2026-02-02 10:00:00
8NULLview2026-02-03 11:00:00
91purchase2026-02-03 12:00:00
102logout2026-02-28 23:59:59

Query

SELECT id,
       event_type,
       ROW_NUMBER() OVER (
         PARTITION BY event_type
         ORDER BY id
       ) AS type_seq
FROM iv_events
WHERE id <= 6
ORDER BY id