Back to problems

Compute violation rate and flag precision in SQL

SQL · Google · Hard

Consider a BigQuery dataset for a platform that records user accounts, user actions, uploaded content, moderation outcomes, and automated risk flags. All timestamps are UTC and the current date is 2025-09-01. Tables: users(user_id INTEGER, country STRING, signup_time TIMESTAMP) events(user_id INTEGER, event_time TIMESTAMP, event_type STRING) — event_type is one of 'post', 'comment', 'message', 'login' content(content_id INTEGER, uploader_user_id INTEGER, created_time…

Checking your access…