Q&A for people interested in the history and origins of science and mathematics
SELECT TOP(##num?100##) pl.PostId, url = 'site://q/' + CAST(pl.PostId AS varchar), COUNT(LinkTypeId) AS [Linked Count], linked = 'site://questions/linked/' + CAST(pl.PostId AS varchar), q.Score, q.Tags FROM PostLinks pl INNER JOIN PostsWithDeleted q ON pl.PostId=q.Id WHERE (q.DeletionDate IS NOT NULL) AND (q.PostTypeId=1) AND (Tags LIKE '%##Tagname##%') GROUP BY pl.PostId, q.Score, q.Tags ORDER BY COUNT(LinkTypeId) DESC