Q&A for students, teachers, and linguists wanting to discuss the finer points of the Chinese language
select top(5) tag_combo, count(1) from (select pttg.PostId ,STRING_AGG(pttg.TagId,',') WITHIN GROUP (ORDER BY pttg.TagId ASC) tag_combo from PostTags pttg group by pttg.PostId) t group by tag_combo order by count(1) desc