# Top Content Flagger

> Flagged content. Who flagged the most?

Canonical URL: <https://datadriven.io/problems/top_content_flagger>

Domain: SQL · Difficulty: medium · Seniority: L4

## Problem

In err_tracks, the pair (err_type, svc_name) identifies a reporter. Count distinct err_id rows per reporter, scoped to services (svc_name) that have at least one resolved alert in alert_events (resolved is not NULL). Return all reporters tied at the highest distinct flag count. The reporter_identity is err_type || '-' || svc_name. Include ties. Sort alphabetically by reporter_identity.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/top_content_flagger)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.