instruction: Posts closed, edited by users with <3k rep and reopened.
response: SELECT COUNT(i.PostId) FROM PostHistory AS i INNER JOIN PostHistory AS c ON i.PostId = c.PostId AND i.PostHistoryTypeId = 1 INNER JOIN PostHistory AS e ON c.PostId = e.PostId AND c.PostHistoryTypeId = 10 AND e.PostHistoryTypeId = 5 AND c.CreationDate < e.CreationDate AND i.UserId != e.UserId INNER JOIN Users AS u ON e.UserId = u.Id AND u.Reputation < 3000 INNER JOIN PostHistory AS r ON c.PostId = r.PostId AND r.PostHistoryTypeId = 11 AND e.CreationDate < r.CreationDate WHERE i.CreationDate >= DATEADD(DAY, -90, GETDATE()) GROUP BY i.PostId