Q&A for professional and enthusiast programmers
SELECT url = 'site://q/' + CAST(pwd.Id AS varchar), DeletionDate, ClosedDate, Tags AS [Tags] FROM PostsWithDeleted pwd JOIN PostHistory ph ON ph.PostId=pwd.Id WHERE DeletionDate >= '2020-06-22' AND PostTypeId = 1 AND CHARINDEX(##TagName:string##, Tags) > 0 ORDER BY DeletionDate DESC