The quality dashboard counts 255 evaluated sessions, but only 237 different sessions have ever been evaluated. Some sessions were scored by the automated judge and then scored again by a reviewer or by the user, and the staging model (the first cleaned copy of the source table) passes every row through. The team has agreed that the most recent verdict is the one that counts.
Return evaluator_type, sessions, passed_sessions, and pass_rate (passed_sessions divided by sessions, rounded to 3 decimals), computed after keeping one evaluation per session: the one with the latest evaluated_at, and if two share a timestamp, the one with the higher evaluation_id. evaluator_type is the type of the evaluation that was kept, and passed_sessions counts kept evaluations where passed is 1. Order by evaluator_type.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.