# Sessions by Content Type

> Engagement, broken down by content format.

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

Domain: SQL · Difficulty: medium · Seniority: L3

## Problem

Per content_type in content_items, return the content_type and the count of content items in that type. Sort by count descending, breaking ties alphabetically by content_type.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/sessions_by_content_type)
- [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.