You could leverage a PIVOT query to spot some relationships. This query does that:
select [tag row], [python], [pandas], [sql], [c++], [java], [javascript]
from (
select ptr.postid, trow.tagname [tag row], tcol.tagname [tag col]
from posttags ptr
inner join tags trow
on trow.id = ptr.tagid
inner join posttags ptc
on ptr.postid = ptc.postid
inner join tags tcol on tcol.id = ptc.tagid
) data
pivot (
count(postid)
for [tag col] in ([python], [pandas], [sql], [c++], [java], [javascript])
) pvt
order by 4 desc
An alternative might be looking at which tags go together on questions. Here is the query for # of questions with the same 5 tags
select t1.tagname
, t2.tagname
, t3.tagname
, t4.tagname
, t5.tagname
, count(*) [post_cnt]
from (
select postid
, [1] [tag1]
, [2] [tag2]
, [3] [tag3]
, [4] [tag4]
, [5] [tag5]
, [6]
, [7]
from (
select postid
, tagid
, row_number() over (partition by postid order by tagid) [pos]
from posttags pm
) data
pivot (
max(tagid)
for [pos] in ([1], [2], [3], [4], [5], [6], [7])
) pvt
) tagpos
inner join tags t1 on t1.id = tag1
inner join tags t2 on t2.id = tag2
inner join tags t3 on t3.id = tag3
inner join tags t4 on t4.id = tag4
inner join tags t5 on t5.id = tag5
where [tag1] is not null
and [tag2] is not null
and [tag3] is not null
and [tag4] is not null
and [tag5] is not null
group by t1.tagname
, t2.tagname
, t3.tagname
, t4.tagname
, t5.tagname
, [6], [7]
order by count(*) desc
Keep in mind SEDE is updated once a week on Sunday.
Use the educational SEDE Tutorial written by the awesome Monica Cellio.
Say "Hi" in SEDE chat.